huyuanfeng2018 opened a new pull request, #28135: URL: https://github.com/apache/flink/pull/28135
## What is the purpose of the change Fix duplicate serialization in `AdaptiveLoadBasedRecordWriter#broadcastEmit`. The method already serializes the record once before iterating over all subpartitions, but the loop called the record-based `emit(record, channelIndex)` overload, which serialized the record again for each subpartition. This change reuses the existing serialized `ByteBuffer` and calls the buffer-based emit overload. ## Brief change log - Reuse the serialized broadcast record buffer in `AdaptiveLoadBasedRecordWriter#broadcastEmit`. ## Verifying this change - `./mvnw -pl flink-runtime spotless:apply` - `./mvnw -pl flink-runtime -am -Dtest=AdaptiveLoadBasedRecordWriterTest -Dsurefire.failIfNoSpecifiedTests=false test` -- 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]
