-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Small Simplifications DiskThresholdDecider #64703
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
Small Simplifications DiskThresholdDecider #64703
Conversation
Some smaller improvements in the direction of elastic#62275 and removal of some dead code and duplication.
|
Pinging @elastic/es-distributed (:Distributed/Allocation) |
|
|
||
| // Fail open there is no info available | ||
| final ClusterInfo clusterInfo = allocation.clusterInfo(); | ||
| if (clusterInfo == null) { |
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.
This check is dead code, both calling methods to this method use the clusterInfo before it runs so it's never null here for sure.
henningandersen
left a comment
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.
|
Thanks Henning! |
Some smaller improvements in the direction of elastic#62275 and removal of some dead code and duplication.
Just a small thing I still had lying around:
Some smaller improvements in the direction of #62275 and removal of some dead code and duplication.