danny0405 commented on a change in pull request #4294:
URL: https://github.com/apache/hudi/pull/4294#discussion_r768270060



##########
File path: 
hudi-common/src/main/java/org/apache/hudi/common/table/view/AbstractTableFileSystemView.java
##########
@@ -336,9 +336,10 @@ private void ensurePartitionLoadedCorrectly(String 
partition) {
       if (!metaClient.getFs().exists(partitionPath)) {
         metaClient.getFs().mkdirs(partitionPath);
         return new FileStatus[0];
+      } else {
+        return metaClient.getFs().listStatus(partitionPath);

Review comment:
       In flink pipeline, there are cases that we need to look into the 
partition files through the fs view with this method call, the bucket assigner 
would check the small files under the partition and the partition may be new.
   
   Multiple bucket assigner may operate on same partitions at the same time.




-- 
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]


Reply via email to