GitHub user cammckenzie opened a pull request:

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

    CURATOR-358 - Fixed race condition with getLeader()

    -If leadership changes between the getParticipantNodes() call and the 
getLeader() internal call the NoNodeException is now handled and the next child 
in the list is evaluated.
    
    Another option would be to just return the default empty Participant object 
and not iterate over the whole list of participants.

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

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

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

    https://github.com/apache/curator/pull/173.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 #173
    
----
commit 3478aca7ed6852484b5574a6082f4bb75c04a1e0
Author: Cam McKenzie <[email protected]>
Date:   2016-11-20T23:38:15Z

    CURATOR-358 - Fixed race condition with getLeader()
    -If leadership changes between the getParticipantNodes() call and the 
getLeader() internal call the NoNodeException is now handled and the next child 
in the list is evaluated.

----


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to