Hi,

I have a topic with 16 partitions that shows the following output for 

kafka-topics.sh --zookeeper xxxxx:2181 --topic capture --describe

Can anyone explain to me what the difference in replicas means and what Leader 
of -1 means?

In the logs of my producer I see that no messages seem to be sent to the 
partitions with '-1' and th eproducer buffer becomes exhausted afetr a while 
(maybe that is related?)

Jan

        Topic:capture   PartitionCount:16       ReplicationFactor:1     Configs:
        
        Topic: capture  Partition: 0    Leader: 1       Replicas: 1     Isr: 1
        Topic: capture  Partition: 1    Leader: 1       Replicas: 1     Isr: 1
        Topic: capture  Partition: 2    Leader: -1      Replicas: 2     Isr: 
        Topic: capture  Partition: 3    Leader: 1       Replicas: 1     Isr: 1
        Topic: capture  Partition: 4    Leader: -1      Replicas: 2     Isr: 
        Topic: capture  Partition: 5    Leader: 1       Replicas: 1     Isr: 1
        Topic: capture  Partition: 6    Leader: -1      Replicas: 2     Isr: 
        Topic: capture  Partition: 7    Leader: 1       Replicas: 1     Isr: 1
        Topic: capture  Partition: 8    Leader: -1      Replicas: 2     Isr: 
        Topic: capture  Partition: 9    Leader: 1       Replicas: 1     Isr: 1
        Topic: capture  Partition: 10   Leader: -1      Replicas: 2     Isr: 
        Topic: capture  Partition: 11   Leader: 1       Replicas: 1     Isr: 1
        Topic: capture  Partition: 12   Leader: -1      Replicas: 2     Isr: 
        Topic: capture  Partition: 13   Leader: 1       Replicas: 1     Isr: 1
        Topic: capture  Partition: 14   Leader: -1      Replicas: 2     Isr: 
        Topic: capture  Partition: 15   Leader: 1       Replicas: 1     Isr: 1

Reply via email to