apache / apache/curator

[CURATOR-292] ConnectionState did not reset the zookeeperclient when session expired

Open
#812 0 comments 0 reactions 0 assignees View on GitHub
bug imported-jira-issue
Dominant language
Java
Stars
3.2k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

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)

...

...

2016-01-21 09:51:10,514 DEBUG [RetryLoop.java] - Retry policy not allowing retry

2016-01-21 09:51:10,515 ERROR [ZKUtil.java] - KeeperErrorCode = Session expired for /dispatcher/list com.trs.dev3.bdc.util.ZKUtil.watchedGetChildren(ZKUtil.java:342) com.trs.dev3.bdc.dispatcher.Tools.zkWatcherList(Tools.java:74) com.trs.dev3.bdc.dispatcher.Tools$1.process(Tools.java:70)

---
Originally reported by wooden, imported from: ConnectionState did not reset the zookeeperclient when session expired


  • assignee: randgalt
  • status: Open
  • priority: Major
  • resolution: Unresolved
  • imported: 2025-01-21

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.