GitHub user vahidhashemian opened a pull request: https://github.com/apache/kafka/pull/1937
KAFKA-4108: Improve DumpLogSegments offsets-decoder output format This PR improves the output format of DumpLogSegments when the `--offset-decoder` option is used for consuming `__consumer_offsets`, especially when it comes to group metadata. An example of the partial output with existing formatting: ``` key: metadata::console-consumer-40190 payload: consumer:range:1:{consumer-1-20240b92-fbf4-44d5-bf8c-66b6d70c9948=[foo-0]} ``` An example of the same output with suggested formatting: ``` key: {"metadata":"console-consumer-40190"} payload: {"protocolType":"consumer","groupMetadata.protocol":"range","groupMetadata.generationId":1,"assignment":"{consumer-1-20240b92-fbf4-44d5-bf8c-66b6d70c9948=[foo-0]}"} ``` You can merge this pull request into a Git repository by running: $ git pull https://github.com/vahidhashemian/kafka KAFKA-4108 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/1937.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1937 ---- commit 55541e0df74c923c9917b0489212b269e25cf5aa Author: Vahid Hashemian <vahidhashem...@us.ibm.com> Date: 2016-09-29T22:53:55Z KAFKA-4108: Improve DumpLogSegments offsets-decoder output format This PR improves the output format of DumpLogSegments when the `--offset-decoder` option is used for consuming `__consumer_offsets`, especially when it comes to group metadata. An example of the partial output with existing formatting: ``` key: metadata::console-consumer-40190 payload: consumer:range:1:{consumer-1-20240b92-fbf4-44d5-bf8c-66b6d70c9948=[foo-0]} ``` An example of the same output with suggested formatting: ``` key: {"metadata":"console-consumer-40190"} payload: {"protocolType":"consumer","groupMetadata.protocol":"range","groupMetadata.generationId":1,"assignment":"{consumer-1-20240b92-fbf4-44d5-bf8c-66b6d70c9948=[foo-0]}"} ``` ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---