Skip to content

Commit

Permalink
#176 - Improve Overseer election version of same thing.
Browse files Browse the repository at this point in the history
  • Loading branch information
markrmiller committed Jul 15, 2020
1 parent c6cb6ab commit 2df3175
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ public OverseerElectionContext(final String zkNodeName, SolrZkClient zkClient, O
@Override
void runLeaderProcess(ElectionContext context, boolean weAreReplacement, int pauseBeforeStartMs) throws KeeperException,
InterruptedException, IOException {
if (isClosed) {
if (isClosed || zkClient.isClosed()) {
log.info("Bailing on becoming leader, we are closed");
return;
}

Expand Down

0 comments on commit 2df3175

Please sign in to comment.