[ https://issues.apache.org/jira/browse/KAFKA-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14144507#comment-14144507 ]
hongyu bi commented on KAFKA-1019: ---------------------------------- Thanks @Guozhang. Yes, followed the same process to re-produce this issue. Sorry I don't quit understand why KAFKA-1558 lead to this issue? >From the method below I don't see any process on topic delete: PartitionStateMachine$TopicChangeListener handleChildChange: val newTopics = currentChildren -- controllerContext.allTopics val deletedTopics = controllerContext.allTopics -- currentChildren controllerContext.allTopics = currentChildren val addedPartitionReplicaAssignment = ZkUtils.getReplicaAssignmentForTopics(zkClient, newTopics.toSeq) controllerContext.partitionReplicaAssignment = controllerContext.partitionReplicaAssignment.filter(p => !deletedTopics.contains(p._1.topic)) controllerContext.partitionReplicaAssignment.++=(addedPartitionReplicaAssignment) if(newTopics.size > 0) controller.onNewTopicCreation(newTopics, addedPartitionReplicaAssignment.keySet.toSet) > 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 > 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)