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


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/StreamWriteOperatorCoordinator.java:
##########
@@ -524,19 +538,20 @@ private void handleBootstrapEvent(WriteMetadataEvent 
event) {
       this.eventBuffers.cleanLegacyEvents(event);
       return;
     }
-    WriteMetadataEvent[] eventBuffer = 
this.eventBuffers.getOrCreateBootstrapBuffer(event, this.parallelism);
+    Pair<WriteMetadataEvent[], WriteMetadataEvent[]> eventBufferPair = 
this.eventBuffers.getOrCreateBootstrapBuffer(event, this.parallelism, 
this.indexWriteParallelism);

Review Comment:
   1. move these two parallelism into a member of the `eventBuffers`;
   2. returns a single buffer for the method `getOrCreateBootstrapBuffer`.



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