Hi Josh, What is the Kafka version you are using? And can you describe the steps to re-produce this issue?
Guozhang On Thu, Jul 17, 2014 at 9:01 AM, Josh J <joshjd...@gmail.com> wrote: > Hi, > > I'm running three kafka brokers. I receive the following when using the > producer > > panic: kafka server: In the middle of a leadership election, there is > currently no leader for this partition and hence it is unavailable for > writes. > > > Though the describe topic shows a leader for each partition. What's > happening here to make it unavailable for writes? > > root@6e911d719c7b:/# $KAFKA_HOME/bin/kafka-topics.sh --describe --topic > topic --zookeeper $ZK_PORT_2181_TCP_ADDR > Topic:topic PartitionCount:20 ReplicationFactor:2 Configs: > Topic: topic Partition: 0 Leader: 5341 Replicas: 5341,29311 > Isr: 5341,29311 > Topic: topic Partition: 1 Leader: 12452 Replicas: > 12452,5341 Isr: 12452,5341 > Topic: topic Partition: 2 Leader: 29311 Replicas: > 29311,12452 Isr: 29311,12452 > Topic: topic Partition: 3 Leader: 5341 Replicas: 5341,12452 > Isr: 5341,12452 > Topic: topic Partition: 4 Leader: 12452 Replicas: > 12452,29311 Isr: 12452,29311 > Topic: topic Partition: 5 Leader: 29311 Replicas: > 29311,5341 Isr: 29311,5341 > Topic: topic Partition: 6 Leader: 5341 Replicas: 5341,29311 > Isr: 5341,29311 > Topic: topic Partition: 7 Leader: 12452 Replicas: > 12452,5341 Isr: 12452,5341 > Topic: topic Partition: 8 Leader: 29311 Replicas: > 29311,12452 Isr: 29311,12452 > Topic: topic Partition: 9 Leader: 5341 Replicas: 5341,12452 > Isr: 5341,12452 > Topic: topic Partition: 10 Leader: 12452 Replicas: > 12452,29311 Isr: 12452,29311 > Topic: topic Partition: 11 Leader: 29311 Replicas: > 29311,5341 Isr: 29311,5341 > Topic: topic Partition: 12 Leader: 5341 Replicas: > 5341,29311 Isr: 5341,29311 > Topic: topic Partition: 13 Leader: 12452 Replicas: > 12452,5341 Isr: 12452,5341 > Topic: topic Partition: 14 Leader: 29311 Replicas: > 29311,12452 Isr: 29311,12452 > Topic: topic Partition: 15 Leader: 5341 Replicas: > 5341,12452 Isr: 5341,12452 > Topic: topic Partition: 16 Leader: 12452 Replicas: > 12452,29311 Isr: 12452,29311 > Topic: topic Partition: 17 Leader: 29311 Replicas: > 29311,5341 Isr: 29311,5341 > Topic: topic Partition: 18 Leader: 5341 Replicas: > 5341,29311 Isr: 5341,29311 > Topic: topic Partition: 19 Leader: 12452 Replicas: > 12452,5341 Isr: 12452,5341 > > Thanks, > Josh > -- -- Guozhang