You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/03/17 00:43:01 UTC

[GitHub] [hudi] tisonkun commented on a change in pull request #3304: [HUDI-2198] Clean and reset the bootstrap events for coordinator when…

tisonkun commented on a change in pull request #3304:
URL: https://github.com/apache/hudi/pull/3304#discussion_r828561997



##########
File path: hudi-flink/src/main/java/org/apache/hudi/sink/partitioner/BucketAssignFunction.java
##########
@@ -194,9 +194,10 @@ private void processRecord(HoodieRecord<?> record, Collector<O> out) throws Exce
     } else {
       location = getNewRecordLocation(partitionPath);
       this.context.setCurrentKey(recordKey);
-      if (isChangingRecords) {
-        updateIndexState(partitionPath, location);
-      }
+    }
+    // always refresh the index
+    if (isChangingRecords) {
+      updateIndexState(partitionPath, location);

Review comment:
       After this change, shall L189 be redundant?




-- 
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: commits-unsubscribe@hudi.apache.org

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