hbgstc123 commented on code in PR #8673:
URL: https://github.com/apache/hudi/pull/8673#discussion_r1444136324


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/StreamWriteFunction.java:
##########
@@ -453,7 +454,7 @@ private boolean flushBucket(DataBucket bucket) {
         .endInput(false)
         .build();
 
-    this.eventGateway.sendEventToCoordinator(event);
+    this.eventGateway.sendEventToCoordinator(new WriteResultEvent(event, 
currentInstant));

Review Comment:
   `WriteMetadataEvent.instantTime` is the the instant subtask written into.  
   `WriteResultEvent.curInstant` is the pending instant in timeline when 
sending it to JM, it will get update when task restart.  
   So they maybe different after task restart.



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