Skip to content

Conversation

@rborer
Copy link
Contributor

@rborer rborer commented Jun 12, 2017

I'm using the following fn to get a leader while dealing with the following 2 scenarios:

  • if a dummy Participant is returned (because there is no leader elected), return nil;
  • if a KeeperException$NoNodeException is caught because leadership hasn't started yet, return nil.

I think it could make a great addition to curator framework, what do you think?

Cheers,
Reynald

Handle the following 2 cases:
- if a dummy Participant is returned (because there is no leader elected), return nil;
- if a KeeperException$NoNodeException is caught because leadership hasn't started yet, return nil.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant