danny0405 commented on code in PR #13285:
URL: https://github.com/apache/hudi/pull/13285#discussion_r2086488483


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/common/AbstractStreamWriteFunction.java:
##########
@@ -206,17 +186,8 @@ private void restoreWriteMetadata() throws Exception {
         // re-commit the inflight instant
         this.eventGateway.sendEventToCoordinator(event);
         LOG.info("Send uncommitted write metadata event to coordinator, 
task[{}].", taskID);
-        eventSent = true;
       }
     }
-    if (!eventSent) {
-      sendBootstrapEvent();
-    }
-  }
-
-  protected void sendBootstrapEvent() {
-    
this.eventGateway.sendEventToCoordinator(WriteMetadataEvent.emptyBootstrap(taskID));

Review Comment:
   We need it to clean the legacy events.



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