[HUDI-2994] Add judgement to existed partitionPath in the catch code block for HU… (#4294)
* [HUDI-2994] Add judgement to existed partition path in the catch code block for HUDI-2743 Co-authored-by: wangminchao <wangminchao@asinking.com>
This commit is contained in:
@@ -336,9 +336,11 @@ public abstract class AbstractTableFileSystemView implements SyncableFileSystemV
|
|||||||
if (!metaClient.getFs().exists(partitionPath)) {
|
if (!metaClient.getFs().exists(partitionPath)) {
|
||||||
metaClient.getFs().mkdirs(partitionPath);
|
metaClient.getFs().mkdirs(partitionPath);
|
||||||
return new FileStatus[0];
|
return new FileStatus[0];
|
||||||
|
} else {
|
||||||
|
// in case the partition path was created by another caller
|
||||||
|
return metaClient.getFs().listStatus(partitionPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
throw new HoodieIOException(String.format("Failed to list partition path: %s", partitionPath));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user