-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use scheduleUnlessShuttingDown
in LeaderChecker
#108643
Use scheduleUnlessShuttingDown
in LeaderChecker
#108643
Conversation
We mustn't throw an exception here, it trips an assertion. Simply giving up on shutdown is fine. Closes elastic#108642
Pinging @elastic/es-distributed (Team:Distributed) |
Hi @DaveCTurner, I've created a changelog YAML for you. |
public String toString() { | ||
return "scheduled check of leader " + leader; | ||
} | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have similar in FollowerChecker, should that be updated as well?
elasticsearch/server/src/main/java/org/elasticsearch/cluster/coordination/FollowersChecker.java
Lines 404 to 416 in d500028
private void scheduleNextWakeUp() { | |
transportService.getThreadPool().schedule(new Runnable() { | |
@Override | |
public void run() { | |
handleWakeUp(); | |
} | |
@Override | |
public String toString() { | |
return FollowerChecker.this + "::handleWakeUp"; | |
} | |
}, followerCheckInterval, EsExecutors.DIRECT_EXECUTOR_SERVICE); | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I don't see why not --> #108685
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
We mustn't throw an exception here, it trips an assertion. Simply giving
up on shutdown is fine.
Closes #108642