You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/12/09 16:13:00 UTC

[jira] [Commented] (CURATOR-405) Connection loss not leading to ConnectionState.LOST and causing logs to fill

    [ https://issues.apache.org/jira/browse/CURATOR-405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16714010#comment-16714010 ] 

ASF GitHub Bot commented on CURATOR-405:
----------------------------------------

GitHub user Randgalt opened a pull request:

    https://github.com/apache/curator/pull/292

    [CURATOR-405] reset startOfSuspendedEpoch when session expiration is injected

    Once the session expiration is injected, reset startOfSuspendedEpoch so that we don't do this copious times while things are being reset.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/apache/curator CURATOR-405

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/curator/pull/292.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #292
    
----
commit d9652662293529374c601d90a9700e132a466700
Author: randgalt <ra...@...>
Date:   2018-12-09T16:11:30Z

    CURATOR-405
    
    Once the session expiration is injected, reset startOfSuspendedEpoch so that we don't do this copious times while things are being reset.

----


> Connection loss not leading to ConnectionState.LOST and causing logs to fill
> ----------------------------------------------------------------------------
>
>                 Key: CURATOR-405
>                 URL: https://issues.apache.org/jira/browse/CURATOR-405
>             Project: Apache Curator
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 3.3.0
>            Reporter: Jordan Zimmerman
>            Assignee: Jordan Zimmerman
>            Priority: Major
>             Fix For: 4.1.0
>
>
> It's unclear how it got into this state, but a client started endlessly logging "Session timeout has elapsed while SUSPENDED". Curator 3.0 is supposed to go to LOST and inject a session expiration but it's not working in this case.
> There are millions of these:
> {code}
> [2017-05-01 18:29:34,636][WARN ][org.apache.curator.framework.state.ConnectionStateManager] Session timeout has elapsed while SUSPENDED. Injecting a session expiration. Elapsed ms: 250368206. Adjusted session timeout ms: 15000 {}
> [2017-05-01 18:29:34,637][INFO ][XXXXX] Resolved connection string from [http://localhost:2180/zookeeper/clients/ensemble/connection-string?namespace=/v1] to [localhost:22191,localhost:22194,localhost:22192,localhost:22193/v1] with local namespace [/v1] {}
> [2017-05-01 18:29:34,637][INFO ][org.apache.zookeeper.ZooKeeperTestable] injectSessionExpiration() called {}
> [2017-05-01 18:29:34,637][WARN ][org.apache.curator.framework.state.ConnectionStateManager] Session timeout has elapsed while SUSPENDED. Injecting a session expiration. Elapsed ms: 250368207. Adjusted session timeout ms: 15000 {}
> [2017-05-01 18:29:34,637][INFO ][XXXXX] Resolved connection string from [http://localhost:2180/zookeeper/clients/ensemble/connection-string?namespace=/v1] to [localhost:22191,localhost:22194,localhost:22192,localhost:22193/v1] with local namespace [/v1] {}
> [2017-05-01 18:29:34,637][INFO ][org.apache.zookeeper.ZooKeeperTestable] injectSessionExpiration() called {}
> [2017-05-01 18:29:34,637][WARN ][org.apache.curator.framework.state.ConnectionStateManager] Session timeout has elapsed while SUSPENDED. Injecting a session expiration. Elapsed ms: 250368207. Adjusted session timeout ms: 15000 {}
> [2017-05-01 18:29:34,637][INFO ][XXXXX] Resolved connection string from [http://localhost:2180/zookeeper/clients/ensemble/connection-string?namespace=/v1] to [localhost:22191,localhost:22194,localhost:22192,localhost:22193/v1] with local namespace [/v1] {}
> [2017-05-01 18:29:34,637][INFO ][org.apache.zookeeper.ZooKeeperTestable] injectSessionExpiration() called {}
> [2017-05-01 18:29:34,637][WARN ][org.apache.curator.framework.state.ConnectionStateManager] Session timeout has elapsed while SUSPENDED. Injecting a session expiration. Elapsed ms: 250368207. Adjusted session timeout ms: 15000 {}
> [2017-05-01 18:29:34,637][INFO ][XXXXX] Resolved connection string from [http://localhost:2180/zookeeper/clients/ensemble/connection-string?namespace=/v1] to [localhost:22191,localhost:22194,localhost:22192,localhost:22193/v1] with local namespace [/v1] {}
> [2017-05-01 18:29:34,637][INFO ][org.apache.zookeeper.ZooKeeperTestable] injectSessionExpiration() called {}
> [2017-05-01 18:29:34,637][WARN ][org.apache.curator.framework.state.ConnectionStateManager] Session timeout has elapsed while SUSPENDED. Injecting a session expiration. Elapsed ms: 250368207. Adjusted session timeout ms: 15000 {}
> [2017-05-01 18:29:34,638][INFO ][XXXXX] Resolved connection string from [http://localhost:2180/zookeeper/clients/ensemble/connection-string?namespace=/v1] to [localhost:22191,localhost:22194,localhost:22192,localhost:22193/v1] with local namespace [/v1] {}
> [2017-05-01 18:29:34,638][INFO ][org.apache.zookeeper.ZooKeeperTestable] injectSessionExpiration() called {}
> [2017-05-01 18:29:34,638][WARN ][org.apache.curator.framework.state.ConnectionStateManager] Session timeout has elapsed while SUSPENDED. Injecting a session expiration. Elapsed ms: 250368208. Adjusted session timeout ms: 15000 {}
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)