-
Notifications
You must be signed in to change notification settings - Fork 25.5k
Replace FailedToCommitClusterStateException with NotMasterException #136083
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
base: main
Are you sure you want to change the base?
Replace FailedToCommitClusterStateException with NotMasterException #136083
Conversation
Replaces the FailedToCommitClusterStateException inside MasterService .BatchingTaskQueue.submitTask with a NotMasterException. Relates to: ES-13061
Pinging @elastic/es-distributed-coordination (Team:Distributed Coordination) |
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.
CI doesn't look very happy about this - please request my review again once that's addressed.
Replaces the FailedToCommitClusterStateException inside MasterService .BatchingTaskQueue.submitTask with a NotMasterException. Relates to: ES-13061
…thub.com/joshua-adams-1/elasticsearch into batch-task-queue-failed-commit-exception
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 (but please fix the top-level comment to be the commit message)
As a note to anyone reviewing this PR:This is the fifth part of a series of PRs fixing how the
Currently, This work is a pre-requisite to #134213. ChangesReplaces the Next StepsThe goal of this work is to fix up all erroneously used Done:
Todo:
Relates to: ES-13061 |
Replaces the
FailedToCommitClusterStateException
insideMasterService .BatchingTaskQueue.submitTask
with aNotMasterException
. Since this exception is thrown when the node is shutting down and closing its threadpools, it can no longer be the current master.Relates to: ES-13061