-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
Replace RoutingTable#shardsWithState(...) with RoutingNodes#unassigned(...) #78931
Replace RoutingTable#shardsWithState(...) with RoutingNodes#unassigned(...) #78931
Conversation
…hState(...) Relates to elastic#77466
Pinging @elastic/es-distributed (Team:Distributed) |
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 use RoutingNodes#unassigned()
to iterate over the unassigned shards directly rather than copying them to an intermediate list first?
…hards_with_state_with_routing_nodes_shards_with_state
Yes, pushed via: 9f88b6e |
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!
@elasticmachine run elasticsearch-ci/docs |
…d(...) (elastic#78931) Replaces only the production use cases of `RoutingTable#shardsWithState(...)` with `RoutingNodes#unassigned()`. Relates to elastic#77466
💚 Backport successful
|
Replaces only the production use cases of
RoutingTable#shardsWithState(...)
.Relates to #77466