muralibasani commented on code in PR #21676:
URL: https://github.com/apache/kafka/pull/21676#discussion_r3564487635


##########
clients/src/main/java/org/apache/kafka/clients/producer/internals/RecordAccumulator.java:
##########
@@ -401,6 +401,74 @@ private RecordAppendResult appendNewBatch(String topic,
         return new RecordAppendResult(future, dq.size() > 1 || batch.isFull(), 
true, batch.estimatedSizeInBytes());
     }
 
+    public RecordAppendResult appendWithRawHeaders(String topic,

Review Comment:
   Agree. Updated. Added a small internal RecordHeadersWriter abstraction with 
two implementations (of(Header[]) and ofRaw(byte[])).



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