curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "clive du (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CURATOR-325) Background retry falls into infinite loop of SessionExpiredException
Date Fri, 20 May 2016 05:28:12 GMT
clive du created CURATOR-325:
--------------------------------

             Summary: Background retry falls into infinite loop of SessionExpiredException
                 Key: CURATOR-325
                 URL: https://issues.apache.org/jira/browse/CURATOR-325
             Project: Apache Curator
          Issue Type: Bug
          Components: Client
    Affects Versions: 2.10.0, 2.9.1
         Environment: sun java jdk 1.7.0_55, curator 2.9.2, zookeeper 3.4.6
            Reporter: clive du


after long time gc pause,which longer than zookeeper session time,the zookeeper cluster invalidate
the session id holding by the client and waiting the client to reconnect,but client consider
the  SessionExpiredException as retry exception and re-put to the background queue,so wo get
the stacktrace infinitely.

12:50:54.337 [configuration-0-EventThread] DEBUG org.apache.curator.RetryLoop - Retrying operation
12:50:54.337 [configuration-0-EventThread] DEBUG org.apache.curator.RetryLoop - Retry-able
exception received
org.apache.zookeeper.KeeperException$SessionExpiredException: KeeperErrorCode = Session expired
for /dynamic/apps/258741001/DEV
    at org.apache.zookeeper.KeeperException.create(KeeperException.java:127) ~[zookeeper-3.4.6.jar:3.4.6-1569965]
    at org.apache.zookeeper.KeeperException.create(KeeperException.java:51) ~[zookeeper-3.4.6.jar:3.4.6-1569965]
    at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1155) ~[zookeeper-3.4.6.jar:3.4.6-1569965]
    at org.apache.curator.framework.imps.GetDataBuilderImpl$4.call(GetDataBuilderImpl.java:304)
~[curator-framework-2.10.0.jar:na]
    at org.apache.curator.framework.imps.GetDataBuilderImpl$4.call(GetDataBuilderImpl.java:293)
~[curator-framework-2.10.0.jar:na]
    at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:108) ~[curator-client-2.10.0.jar:na]
    at org.apache.curator.framework.imps.GetDataBuilderImpl.pathInForeground(GetDataBuilderImpl.java:290)
[curator-framework-2.10.0.jar:na]
    at org.apache.curator.framework.imps.GetDataBuilderImpl.forPath(GetDataBuilderImpl.java:281)
[curator-framework-2.10.0.jar:na]
    at org.apache.curator.framework.imps.GetDataBuilderImpl$1.forPath(GetDataBuilderImpl.java:105)
[curator-framework-2.10.0.jar:na]
    at org.apache.curator.framework.imps.GetDataBuilderImpl$1.forPath(GetDataBuilderImpl.java:65)
[curator-framework-2.10.0.jar:na]



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

Mime
View raw message