You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/11/30 00:51:00 UTC

[jira] [Commented] (KAFKA-7687) Print batch level information in DumpLogSegments when deep iterating

    [ https://issues.apache.org/jira/browse/KAFKA-7687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16704082#comment-16704082 ] 

ASF GitHub Bot commented on KAFKA-7687:
---------------------------------------

huxihx opened a new pull request #5976: KAFKA-7687: Print batch level information in DumpLogSegments
URL: https://github.com/apache/kafka/pull/5976
 
 
   
   DumpLogSegment should be able to print batch level information when deep-iteration is specified
   
   *More detailed description of your change,
   if necessary. The PR title and PR message become
   the squashed commit message, so use a separate
   comment to ping reviewers.*
   
   *Summary of testing strategy (including rationale)
   for the feature or bug fix. Unit and/or integration
   tests are expected for any behaviour change and
   system tests should be considered for larger changes.*
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Print batch level information in DumpLogSegments when deep iterating
> --------------------------------------------------------------------
>
>                 Key: KAFKA-7687
>                 URL: https://issues.apache.org/jira/browse/KAFKA-7687
>             Project: Kafka
>          Issue Type: Improvement
>          Components: tools
>            Reporter: Jason Gustafson
>            Priority: Major
>              Labels: newbie
>
> It is often helpful to have the batch level information when deep iterating a segment. Currently you have to run DumpLogSegments with and without deep iteration and then correlate the results. It would be simpler to print both. We could even nest the individual messages to make the batch boundaries clear. For example:
> {code}
> baseOffset: 0 lastOffset: 1 magic: 2 position: 0 ...
> - offset: 0 keysize: 5 ...
> - offset: 1 keysize: 5 ...
> baseOffset: 2 lastOffset: 4 magic: 2 position: 500 ...
> - offset: 2 keysize: 5 ...
> - offset: 3 keysize: 5 ...
> - offset: 4 keysize: 5 ...
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)