You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Timothy Chen (JIRA)" <ji...@apache.org> on 2014/04/03 02:35:17 UTC

[jira] [Updated] (KAFKA-1358) Broker throws exception when reconnecting to zookeeper

     [ https://issues.apache.org/jira/browse/KAFKA-1358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Chen updated KAFKA-1358:
--------------------------------

    Attachment: KAFKA-1358.patch

> Broker throws exception when reconnecting to zookeeper
> ------------------------------------------------------
>
>                 Key: KAFKA-1358
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1358
>             Project: Kafka
>          Issue Type: Bug
>    Affects Versions: 0.8.1
>            Reporter: Timothy Chen
>            Assignee: Timothy Chen
>         Attachments: KAFKA-1358.patch
>
>
> A non-controller broker currently if zk session expires and re-established calls onControllerResignation even though it may not be the controller.
> The result is that the broker gets exception like this: 
> java.lang.NullPointerException
> 	at kafka.controller.KafkaController$$anonfun$onControllerResignation$1.apply$mcV$sp(KafkaController.scala:340)
> 	at kafka.controller.KafkaController$$anonfun$onControllerResignation$1.apply(KafkaController.scala:337)
> 	at kafka.controller.KafkaController$$anonfun$onControllerResignation$1.apply(KafkaController.scala:337)
> 	at kafka.utils.Utils$.inLock(Utils.scala:538)
> 	at kafka.controller.KafkaController.onControllerResignation(KafkaController.scala:337)
> 	at kafka.controller.KafkaController$SessionExpirationListener$$anonfun$handleNewSession$1.apply$mcZ$sp(KafkaController.scala:1068)
> 	at kafka.controller.KafkaController$SessionExpirationListener$$anonfun$handleNewSession$1.apply(KafkaController.scala:1067)
> 	at kafka.controller.KafkaController$SessionExpirationListener$$anonfun$handleNewSession$1.apply(KafkaController.scala:1067)
> 	at kafka.utils.Utils$.inLock(Utils.scala:538)
> 	at kafka.controller.KafkaController$SessionExpirationListener.handleNewSession(KafkaController.scala:1067)
> 	at org.I0Itec.zkclient.ZkClient$4.run(ZkClient.java:472)
> 	at org.I0Itec.zkclient.ZkEventThread.run(ZkEventThread.java:71)



--
This message was sent by Atlassian JIRA
(v6.2#6252)