[ https://issues.apache.org/jira/browse/KAFKA-6181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16802420#comment-16802420 ]
洪朝阳 commented on KAFKA-6181: ---------------------------- Although I am new to Kafka, I think it's a little easy. > Examining log messages with {{--deep-iteration}} should show superset of > fields > ------------------------------------------------------------------------------- > > Key: KAFKA-6181 > URL: https://issues.apache.org/jira/browse/KAFKA-6181 > Project: Kafka > Issue Type: Improvement > Components: core > Affects Versions: 0.11.0.0 > Reporter: Yeva Byzek > Priority: Minor > Labels: newbie > > Printing log data on Kafka brokers using {{kafka.tools.DumpLogSegments}}: > {{--deep-iteration}} should show a superset of fields in each message, as > compared to without this parameter, however some fields are missing. Impact: > users need to execute both commands to get the full set of fields. > {noformat} > kafka-run-class kafka.tools.DumpLogSegments \ > --print-data-log \ > --files 00000000000000000000.log > Dumping 00000000000000000000.log > Starting offset: 0 > baseOffset: 0 lastOffset: 35 baseSequence: -1 lastSequence: -1 producerId: -1 > producerEpoch: -1 partitionLeaderEpoch: 0 isTransactional: false position: 0 > CreateTime: 1509987569448 isvalid: true size: 3985 magic: 2 compresscodec: > NONE crc: 4227905507 > {noformat} > {noformat} > kafka-run-class kafka.tools.DumpLogSegments \ > --print-data-log \ > --files 00000000000000000000.log \ > --deep-iteration > Dumping 00000000000000000000.log > Starting offset: 0 > offset: 0 position: 0 CreateTime: 1509987569420 isvalid: true keysize: -1 > valuesize: 100 > magic: 2 compresscodec: NONE producerId: -1 sequence: -1 isTransactional: > false headerKeys: [] payload: > SSXVNJHPDQDXVCRASTVYBCWVMGNYKRXVZXKGXTSPSJDGYLUEGQFLAQLOCFLJBEPOWFNSOMYARHAOPUFOJHHDXEHXJBHW > {noformat} > Notice, for example, that {{partitionLeaderEpoch}} and {{crc}} are missing. > Print these and all missing fields. -- This message was sent by Atlassian JIRA (v7.6.3#76005)