YuweiXiao commented on code in PR #6737:
URL: https://github.com/apache/hudi/pull/6737#discussion_r990979066


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/StreamWriteFunction.java:
##########
@@ -129,6 +137,7 @@ public void snapshotState() {
     // it would check the validity.
     // wait for the buffer data flush out and request a new instant
     flushRemaining(false);
+    this.updateStrategy.reset();
   }

Review Comment:
   This is not only for consistent hashing bucket index. It also handles 
concurrent clustering for a normal stream write, i.e., reject updates to file 
groups that are under clustering.



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