-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Avoid NPE when disassociateDeadNodes is executed for a node present in the desired balance #91659
Conversation
Hi @idegtiarenko, I've created a changelog YAML for you. |
...in/java/org/elasticsearch/cluster/routing/allocation/allocator/DesiredBalanceReconciler.java
Show resolved
Hide resolved
Pinging @elastic/es-distributed (Team:Distributed) |
Hi @idegtiarenko, I've updated the changelog YAML for you. |
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.
Could we assert the node is not-null in the place where the NPE was happening? Would have been good to see it as an immediate failure at that point, let's avoid any recurrence and document the assumption here.
Otherwise LGTM (one typo nit) no need for another review.
...in/java/org/elasticsearch/cluster/routing/allocation/allocator/DesiredBalanceReconciler.java
Outdated
Show resolved
Hide resolved
…n the desired balance (elastic#91659)
An NPE is thrown when executing
disassociateDeadNodes
for a node that ispresent in a desired balance failing corresponding master state update task.
As a result this node can no longer join cluster after restarting as it
remains in a cluster state.
Closes: #91517