ijuma commented on a change in pull request #10498:
URL: https://github.com/apache/kafka/pull/10498#discussion_r613743249



##########
File path: core/src/main/scala/kafka/tools/DumpLogSegments.scala
##########
@@ -280,7 +284,7 @@ object DumpLogSegments {
               if (batch.magic >= RecordBatch.MAGIC_VALUE_V2) {
                 print(" sequence: " + record.sequence + " headerKeys: " + 
record.headers.map(_.key).mkString("[", ",", "]"))
               } else {
-                print(s" crc: ${record.checksumOrNull} isvalid: 
${record.isValid}")
+                print(s" crc: $checksum isvalid: ${record.isValid}")

Review comment:
       Are we printing the checksum twice or am I missing something?




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