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



##########
File path: 
hudi-flink/src/main/java/org/apache/hudi/sink/partitioner/BucketAssignFunction.java
##########
@@ -159,8 +164,11 @@ public void processElement(I value, Context ctx, 
Collector<O> out) throws Except
     final BucketInfo bucketInfo;
     final HoodieRecordLocation location;
 
-    if (!partitionLoadState.contains(hoodieKey.getPartitionPath())) {
+    if (bootstrapIndex && 
!partitionLoadState.contains(hoodieKey.getPartitionPath())) {
       // If the partition records are never loaded, load the records first.
+
+      // The dataset may be huge, thus the processing would block for long,

Review comment:
       I think it is okey, for better understand the code logic.




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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to