[
https://issues.apache.org/jira/browse/KAFKA-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14145744#comment-14145744
]
Sriharsha Chintalapani commented on KAFKA-1019:
-----------------------------------------------
[~guozhang] [~nehanarkhede] I don't think this issues exists in the trunk
I ran the above steps specified by [~draiwn] with zookeeper 3.4.6
bin/kafka-topics.sh --describe --topic testid --zookeeper
zookeeper1:2181,zookeeper2:2181,zookeeper3:2181
Topic:testid PartitionCount:3 ReplicationFactor:3 Configs:
Topic: testid Partition: 0 Leader: 3 Replicas: 3,2,1 Isr:
3,2,1
Topic: testid Partition: 1 Leader: 1 Replicas: 1,3,2 Isr:
1,3,2
Topic: testid Partition: 2 Leader: 2 Replicas: 2,1,3 Isr:
2,1,3
[kafka@zookeeper1 kafka]$ bin/kafka-topics.sh --delete --topic testid
--zookeeper zookeeper1:2181,zookeeper2:2181,zookeeper3:2181
Topic testid is marked for deletion.
Note: This will have no impact if delete.topic.enable is not set to true.
[kafka@zookeeper1 kafka]$ bin/kafka-topics.sh --describe --topic testid
--zookeeper zookeeper1:2181,zookeeper2:2181,zookeeper3:2181
[kafka@zookeeper1 kafka]$ bin/kafka-topics.sh --create --topic testid
--replication-factor 3 --partition 3 --zookeeper
zookeeper1:2181,zookeeper2:2181,zookeeper3:2181
Created topic "testid".
[kafka@zookeeper1 kafka]$ bin/kafka-topics.sh --describe --topic testid
--zookeeper zookeeper1:2181,zookeeper2:2181,zookeeper3:2181
Topic:testid PartitionCount:3 ReplicationFactor:3 Configs:
Topic: testid Partition: 0 Leader: 3 Replicas: 3,1,2 Isr:
3,1,2
Topic: testid Partition: 1 Leader: 1 Replicas: 1,2,3 Isr:
1,2,3
Topic: testid Partition: 2 Leader: 2 Replicas: 2,3,1 Isr:
2,3,1
> kafka-preferred-replica-election.sh will fail without clear error message if
> /brokers/topics/[topic]/partitions does not exist
> ------------------------------------------------------------------------------------------------------------------------------
>
> Key: KAFKA-1019
> URL: https://issues.apache.org/jira/browse/KAFKA-1019
> Project: Kafka
> Issue Type: Bug
> Affects Versions: 0.8.1
> Reporter: Guozhang Wang
> Assignee: Sriharsha Chintalapani
> Labels: newbie
> Fix For: 0.9.0
>
>
> From Libo Yu:
> I tried to run kafka-preferred-replica-election.sh on our kafka cluster.
> But I got this expection:
> Failed to start preferred replica election
> org.I0Itec.zkclient.exception.ZkNoNodeException:
> org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode =
> NoNode for /brokers/topics/uattoqaaa.default/partitions
> I checked zookeeper and there is no
> /brokers/topics/uattoqaaa.default/partitions. All I found is
> /brokers/topics/uattoqaaa.default.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)