yihua commented on code in PR #6214:
URL: https://github.com/apache/hudi/pull/6214#discussion_r931462512
##########
hudi-common/src/main/java/org/apache/hudi/metadata/BaseTableMetadata.java:
##########
@@ -131,10 +133,13 @@ public List<String> getAllPartitionPaths() throws
IOException {
public FileStatus[] getAllFilesInPartition(Path partitionPath)
throws IOException {
if (isMetadataTableEnabled) {
- try {
- return fetchAllFilesInPartition(partitionPath);
- } catch (Exception e) {
- throw new HoodieMetadataException("Failed to retrieve files in
partition " + partitionPath + " from metadata", e);
+ synchronized (cachedFileListingLock) {
Review Comment:
Right. I actually rolled back these changes since I feel it's not right to
have such changes at this layer.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]