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 2019/05/29 06:19:00 UTC

[jira] [Commented] (KAFKA-8442) Inconsistent ISR output in topic command when using --bootstrap-server

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

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

huxihx commented on pull request #6836: KAFKA-8442:Inconsistent ISR output in topic command
URL: https://github.com/apache/kafka/pull/6836
 
 
   https://issues.apache.org/jira/browse/KAFKA-8442
   
   Modify leader and ISR output for --zookeeper path in TopicCommand, to be consistent with --bootstrap-server path.
   
   *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 to 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


> Inconsistent ISR output in topic command when using --bootstrap-server
> ----------------------------------------------------------------------
>
>                 Key: KAFKA-8442
>                 URL: https://issues.apache.org/jira/browse/KAFKA-8442
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Jason Gustafson
>            Assignee: huxihx
>            Priority: Major
>
> If there is no leader for a partition, the Metadata API returns an empty ISR. When using the `--bootstrap-server` option with `kafka-topics.sh`, this leads to the following output:
> {code}
> Topic:foo       PartitionCount:1        ReplicationFactor:2     Configs:segment.bytes=1073741824
>         Topic: foo      Partition: 0    Leader: none    Replicas: 1,3   Isr: 
> {code}
> When using `--zookeeper`, we display the current ISR correctly:
> {code}
> Topic:foo       PartitionCount:1        ReplicationFactor:2     Configs:
>         Topic: foo      Partition: 0    Leader: -1      Replicas: 1,3   Isr: 1
> {code}
> To avoid confusion, we should make this output consistent or at least not misleading. We should either change the Metadata API to print the ISR when we have it or we can change the output of the topic command to `N/A` or something like that.



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