-
Notifications
You must be signed in to change notification settings - Fork 25.5k
Updates FailedToCommitClusterStateException javadoc #136204
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?
Updates FailedToCommitClusterStateException javadoc #136204
Conversation
Update the FailedToCommitClusterStateException javadoc to specify that it can only be thrown by master nodes.
I have been working on tightening up where the |
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.
It's not quite correct as-is (see inline comment) and I'm not sure it's useful if corrected.
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.
It's not quite correct as-is (see inline comment) and I'm not sure it's useful if corrected.
|
||
/** | ||
* Exception indicating a cluster state update was published and may or may not have been committed. | ||
* This exception can only be thrown by the master node. |
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.
"The" master node suggests you mean the currently-elected master, but if an elected master node cannot commit a cluster state update then it already isn't really the elected master node any more (and the cluster may already have elected a different node as the master).
But then if we just say "a" master node then it doesn't really mean much: this fact is implied by the fact that it's a consequence of publishing a state update, which is only done by the elected master.
Update the
FailedToCommitClusterStateException
javadoc to specify that it can only be thrown by master nodes.Relates to: ES-13061