huyuanfeng2018 opened a new pull request, #28139:
URL: https://github.com/apache/flink/pull/28139

   ## What is the purpose of the change
   
   Backport #28135 to `release-2.3`.
   
   This fixes duplicate serialization in 
`AdaptiveLoadBasedRecordWriter#broadcastEmit`. The method already serializes 
the record once before iterating over all subpartitions; the loop should reuse 
that serialized buffer instead of calling the record-based emit overload, which 
serializes the same record again for each subpartition.
   
   ## Brief change log
   
   - Reuse the serialized broadcast record buffer in 
`AdaptiveLoadBasedRecordWriter#broadcastEmit`.
   
   ## Verifying this change
   
   - `./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]

Reply via email to