chia7712 commented on a change in pull request #10470:
URL: https://github.com/apache/kafka/pull/10470#discussion_r608345818



##########
File path: 
clients/src/main/java/org/apache/kafka/clients/consumer/internals/Fetcher.java
##########
@@ -1385,7 +1385,7 @@ private void handleOffsetOutOfRange(FetchPosition 
fetchPosition, TopicPartition
             byte[] valueByteArray = valueBytes == null ? null : 
Utils.toArray(valueBytes);
             V value = valueBytes == null ? null : 
this.valueDeserializer.deserialize(partition.topic(), headers, valueByteArray);
             return new ConsumerRecord<>(partition.topic(), 
partition.partition(), offset,
-                                        timestamp, timestampType, 
record.checksumOrNull(),

Review comment:
       `DumpLogSegments` can call `RecordBatch#checksum` instead of 
`checksumOrNull` if the record is legacy. I can file a PR as follow-up to 
address that.




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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to