[
https://issues.apache.org/jira/browse/KAFKA-464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13436098#comment-13436098
]
Jun Rao commented on KAFKA-464:
-------------------------------
Thanks for the patch.
I think you always need to call controllerRegisterOrFailover when handling a
new session, whether controllerChannelManager is null or not.
> KafkaController NPE in SessionExpireListener
> --------------------------------------------
>
> Key: KAFKA-464
> URL: https://issues.apache.org/jira/browse/KAFKA-464
> Project: Kafka
> Issue Type: Bug
> Components: core
> Reporter: Jun Rao
> Labels: bugs
> Fix For: 0.8
>
> Attachments: kafka_464.diff
>
> Original Estimate: 48h
> Remaining Estimate: 48h
>
> Sometime see the following in LogRecoverTest.
> [2012-08-15 09:06:01,845] ERROR Error handling event ZkEvent[New session
> event sent to kafka.server.KafkaController$SessionExpireListener@e8ae59a]
> (org.I0Itec.zkclient.ZkEventThread)
> java.lang.NullPointerException
> at
> kafka.server.KafkaController$SessionExpireListener.handleNewSession(KafkaController.scala:284)
> at org.I0Itec.zkclient.ZkClient$4.run(ZkClient.java:472)
> at org.I0Itec.zkclient.ZkEventThread.run(ZkEventThread.java:71)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira