curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "wudan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CURATOR-292) ConnectionState did not reset the zookeeperclient when session expired
Date Thu, 21 Jan 2016 08:25:39 GMT
wudan created CURATOR-292:
-----------------------------

             Summary: ConnectionState did not reset the zookeeperclient when session expired
                 Key: CURATOR-292
                 URL: https://issues.apache.org/jira/browse/CURATOR-292
             Project: Apache Curator
          Issue Type: Bug
            Reporter: wudan
            Assignee: Jordan Zimmerman


Curator version is 2.9.1.The log as follow:

2016-01-21 09:50:11,133 INFO [ClientCnxn.java] - Client session timed out, have not heard
from server in 6667ms for sessionid 0x151e7817be340be, closing socket connection and attempting
reconnect
2016-01-21 09:50:11,239 DEBUG [RetryLoop.java] - Retry-able exception received
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss
for /dispatcher/list
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
	at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1590)
	at org.apache.curator.framework.imps.GetChildrenBuilderImpl$3.call(GetChildrenBuilderImpl.java:214)
	at org.apache.curator.framework.imps.GetChildrenBuilderImpl$3.call(GetChildrenBuilderImpl.java:1)
	at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:107)
	at org.apache.curator.framework.imps.GetChildrenBuilderImpl.pathInForeground(GetChildrenBuilderImpl.java:199)
	at org.apache.curator.framework.imps.GetChildrenBuilderImpl.forPath(GetChildrenBuilderImpl.java:191)
	at org.apache.curator.framework.imps.GetChildrenBuilderImpl.forPath(GetChildrenBuilderImpl.java:1)
	at com.trs.dev3.bdc.util.ZKUtil.getChildren(ZKUtil.java:323)
	at com.trs.dev3.bdc.dispatcher.TimerHandler.checkDispatcher(TimerHandler.java:119)
	at com.trs.dev3.bdc.dispatcher.TimerHandler.run(TimerHandler.java:69)
	at java.lang.Thread.run(Unknown Source)
2016-01-21 09:50:12,387 INFO [ClientCnxn.java] - Opening socket connection to server 192.168.51.153/192.168.51.153:2181.
Will not attempt to authenticate using SASL (unknown error)
2016-01-21 09:50:21,234 INFO [ClientCnxn.java] - Client session timed out, have not heard
from server in 10000ms for sessionid 0x151e7817be340be, closing socket connection and attempting
reconnect
2016-01-21 09:50:21,236 DEBUG [ClientCnxnSocketNIO.java] - Ignoring exception during shutdown
input
java.net.SocketException: Socket is not connected
	at sun.nio.ch.Net.translateToSocketException(Unknown Source)
	at sun.nio.ch.Net.translateException(Unknown Source)
	at sun.nio.ch.Net.translateException(Unknown Source)
	at sun.nio.ch.SocketAdaptor.shutdownInput(Unknown Source)
	at org.apache.zookeeper.ClientCnxnSocketNIO.cleanup(ClientCnxnSocketNIO.java:200)
	at org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:1185)
	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1110)
Caused by: java.nio.channels.NotYetConnectedException
	at sun.nio.ch.SocketChannelImpl.shutdownInput(Unknown Source)
	... 4 more
2016-01-21 09:50:21,262 DEBUG [RetryLoop.java] - Retrying operation
2016-01-21 09:50:21,345 DEBUG [RetryLoop.java] - Retry-able exception received
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss
for /dispatcher/list
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
	at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1590)
	at org.apache.curator.framework.imps.GetChildrenBuilderImpl$3.call(GetChildrenBuilderImpl.java:214)
	at org.apache.curator.framework.imps.GetChildrenBuilderImpl$3.call(GetChildrenBuilderImpl.java:1)
	at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:107)
	at org.apache.curator.framework.imps.GetChildrenBuilderImpl.pathInForeground(GetChildrenBuilderImpl.java:199)
	at org.apache.curator.framework.imps.GetChildrenBuilderImpl.forPath(GetChildrenBuilderImpl.java:191)
	at org.apache.curator.framework.imps.GetChildrenBuilderImpl.forPath(GetChildrenBuilderImpl.java:1)
	at com.trs.dev3.bdc.util.ZKUtil.getChildren(ZKUtil.java:323)
	at com.trs.dev3.bdc.dispatcher.TimerHandler.checkDispatcher(TimerHandler.java:119)
	at com.trs.dev3.bdc.dispatcher.TimerHandler.run(TimerHandler.java:69)
	at java.lang.Thread.run(Unknown Source)
2016-01-21 09:50:21,345 DEBUG [RetryLoop.java] - Retry-able exception received
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss
for /dispatcher/list
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
	at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1590)
	at org.apache.curator.framework.imps.GetChildrenBuilderImpl$3.call(GetChildrenBuilderImpl.java:214)
	at org.apache.curator.framework.imps.GetChildrenBuilderImpl$3.call(GetChildrenBuilderImpl.java:1)
	at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:107)
	at org.apache.curator.framework.imps.GetChildrenBuilderImpl.pathInForeground(GetChildrenBuilderImpl.java:199)
	at org.apache.curator.framework.imps.GetChildrenBuilderImpl.forPath(GetChildrenBuilderImpl.java:191)
	at org.apache.curator.framework.imps.GetChildrenBuilderImpl.forPath(GetChildrenBuilderImpl.java:1)
	at com.trs.dev3.bdc.util.ZKUtil.watchedGetChildren(ZKUtil.java:342)
	at com.trs.dev3.bdc.dispatcher.Tools.zkWatcherList(Tools.java:74)
	at com.trs.dev3.bdc.dispatcher.Tools$1.process(Tools.java:70)
	at org.apache.curator.framework.imps.NamespaceWatcher.process(NamespaceWatcher.java:61)
	at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:522)
	at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:498)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message