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


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/StreamWriteOperatorCoordinator.java:
##########
@@ -317,6 +310,28 @@ public void subtaskReady(int i, SubtaskGateway 
subtaskGateway) {
     this.gateways[i] = subtaskGateway;
   }
 
+  @Override
+  public CompletableFuture<CoordinationResponse> 
handleCoordinationRequest(CoordinationRequest request) {
+    Correspondent.InstantTimeRequest instantTimeRequest = 
(Correspondent.InstantTimeRequest) request;
+    long checkpointId = instantTimeRequest.getCheckpointId();
+    Pair<String, WriteMetadataEvent[]> instantTimeAndEventBuffer = 
this.eventBuffers.get(checkpointId);
+    final String instantTime;
+    if (instantTimeAndEventBuffer == null) {
+      synchronized (this.eventBuffers) {

Review Comment:
   I can not make it final because I don't want to serialize it in the job 
graph.



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