Skip to content
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 Needless Cache Status Fetches in SearchableSnapshotAllocator (#66433) #66444

Merged
merged 1 commit into from
Dec 16, 2020

Conversation

original-brownbear
Copy link
Member

We shouldn't fetch cache status if no allocation is possible to begin with.
Also, this surfaced an issue with using the Client to reroute since that
won't retry stale shards (failed the invalid license IT for example) so I moved
to using the RerouteService like we do in the GatewayAllocator.
(Plus, dried up one method that was 100% the same as in the replica allocator)

backport of #66433

…lastic#66433)

We shouldn't fetch cache status if no allocation is possible to begin with.
Also, this surfaced an issue with using the `Client` to `reroute` since that
won't retry stale shards (failed the invalid license IT for example) so I moved
to using the `RerouteService` like we do in the `GatewayAllocator`.
(Plus, dried up one method that was 100% the same as in the replica allocator)
@original-brownbear original-brownbear added :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs backport labels Dec 16, 2020
@elasticmachine elasticmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label Dec 16, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@original-brownbear original-brownbear merged commit 0620c6b into elastic:7.x Dec 16, 2020
@original-brownbear original-brownbear deleted the 66433-7.x branch December 16, 2020 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants