lianetm commented on code in PR #23442:
URL: https://github.com/apache/kafka/pull/23442#discussion_r4028055102
##########
clients/src/main/java/org/apache/kafka/clients/producer/internals/RecordAccumulator.java:
##########
@@ -351,7 +351,7 @@ public RecordAppendResult append(String topic,
final ByteBuffer batchBuffer = buffer;
RecordAppendResult appendResult = appendNewBatch(tp, dq,
timestamp, key, value, headers, callbacks,
- () -> MemoryRecords.builder(batchBuffer,
RecordBatch.CURRENT_MAGIC_VALUE, compression, TimestampType.CREATE_TIME, 0L),
Review Comment:
This fix addresses only the "full" strategy, but the "incremental" seems to
have the exact same issue here
https://github.com/apache/kafka/blob/fbbcc1afde582db29cdcdddd9ace573a9c899eb7/clients/src/main/java/org/apache/kafka/clients/producer/internals/ChunkedRecordAccumulator.java#L377
Could we fix both consistently with this PR?
--
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]