helix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kanak Biscuitwala (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HELIX-346) NPE if the same connection is used to reconnect immediately
Date Sat, 14 Dec 2013 01:32:07 GMT
Kanak Biscuitwala created HELIX-346:
---------------------------------------

             Summary: NPE if the same connection is used to reconnect immediately
                 Key: HELIX-346
                 URL: https://issues.apache.org/jira/browse/HELIX-346
             Project: Apache Helix
          Issue Type: Bug
            Reporter: Kanak Biscuitwala


There seems to be a race condition when calling connect() right after disconnect(). There
are callbacks invoked from the previous session and these are run before we are fully reconnected.

{code}
1    [main] ERROR org.apache.helix.manager.zk.ZKExceptionHandler  - Exception while invoking
init callback for listener:org.apache.helix.messaging.handling.HelixTaskExecutor@10cbd8dc
java.lang.NullPointerException
	at org.apache.helix.manager.zk.ZkClient$2.call(ZkClient.java:195)
	at org.apache.helix.manager.zk.ZkClient$2.call(ZkClient.java:192)
	at org.I0Itec.zkclient.ZkClient.retryUntilConnected(ZkClient.java:675)
	at org.apache.helix.manager.zk.ZkClient.exists(ZkClient.java:192)
	at org.I0Itec.zkclient.ZkClient$12.call(ZkClient.java:842)
	at org.I0Itec.zkclient.ZkClient$12.call(ZkClient.java:839)
	at org.I0Itec.zkclient.ZkClient.retryUntilConnected(ZkClient.java:675)
	at org.I0Itec.zkclient.ZkClient.watchForChilds(ZkClient.java:839)
	at org.I0Itec.zkclient.ZkClient.subscribeChildChanges(ZkClient.java:114)
	at org.apache.helix.manager.zk.CallbackHandler.subscribeChildChange(CallbackHandler.java:236)
	at org.apache.helix.manager.zk.CallbackHandler.subscribeForChanges(CallbackHandler.java:266)
	at org.apache.helix.manager.zk.CallbackHandler.invoke(CallbackHandler.java:189)
	at org.apache.helix.manager.zk.CallbackHandler.init(CallbackHandler.java:335)
	at org.apache.helix.manager.zk.ZKHelixManager.initHandlers(ZKHelixManager.java:733)
	at org.apache.helix.manager.zk.ZKHelixManager.handleNewSession(ZKHelixManager.java:857)
	at org.apache.helix.manager.zk.ZKHelixManager.createClient(ZKHelixManager.java:490)
	at org.apache.helix.manager.zk.ZKHelixManager.connect(ZKHelixManager.java:516)
	at org.apache.helix.integration.TestEntropyFreeNodeBounce.testBounceAll(TestEntropyFreeNodeBounce.java:101)
{code}



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Mime
View raw message