cshuo commented on code in PR #12849:
URL: https://github.com/apache/hudi/pull/12849#discussion_r1961277186


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/StreamWriteOperatorCoordinator.java:
##########
@@ -449,6 +449,10 @@ private void handleBootstrapEvent(WriteMetadataEvent 
event) {
         LOG.warn("Reuse current pending Instant {} with {} operationType, "
                 + "ignoring empty bootstrap event.", this.instant, 
WriteOperationType.INSERT.value());
         reset();
+        if (event.isRestored()) {

Review Comment:
   @gejinzh My point is that it's unnecessary to check the condition 
`event.isRestored()`, and we can simple `sendCommitAckEvents(-1L);` here.



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