curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tiny657 <...@git.apache.org>
Subject [GitHub] curator pull request: fixed not to try to reconnect when session a...
Date Thu, 31 Jul 2014 08:01:42 GMT
GitHub user tiny657 opened a pull request:

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

    fixed not to try to reconnect when session and connection timeout.

    This example is working fine when network is not available.
    e.g.
    RetryPolicy retryPolicy = new ExponentialBackoffRetry(Config.BASE_SLEEP_TIME_MS, 3);
    CuratorFrameworkFactory.newClient(connectString, 20000, 10000, retryPolicy);
    
    
    But this example is not working when network is not available.
    e.g.
    RetryPolicy retryPolicy = new ExponentialBackoffRetry(Config.BASE_SLEEP_TIME_MS, 3);
    zkClient = CuratorFrameworkFactory.newClient(connectString, 10000, 10000, retryPolicy);
    
    The application didn't receive any zookeeper event after this reset() method is invoked.


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

    $ git pull https://github.com/tiny657/curator fixReconnection

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

    https://github.com/apache/curator/pull/27.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 #27
    
----
commit fe95e2c9a98d51c7b176d72754cc36270a471df6
Author: Youngwan Lim <tiny657@gmail.com>
Date:   2014-07-31T07:47:47Z

    fixed not to try to reconnect when session and connection timeout.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message