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

Reroute failed shards command is added #101

Merged
merged 2 commits into from
Oct 26, 2022
Merged

Conversation

UyumazHakan
Copy link
Contributor

This PR adds basic reroute command for retrying allocate failed shards.

es.go Outdated
@@ -1630,6 +1630,21 @@ type AllocateStalePrimary struct {
AcceptDataLoss bool `json:"accept_data_loss,omitempty"`
}

// Reroute allows to change the allocation of individual shards in the cluster.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if we called it RerouteWithRetryFailed and make the comment read RerouteWithRetryFailed retries allocation of shards that are blocked due to too many subsequent allocation failures.? what do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sense. I will update this 🙂

@UyumazHakan UyumazHakan merged commit 2b93a65 into main Oct 26, 2022
@UyumazHakan UyumazHakan deleted the uyumazhakan/reroute branch October 26, 2022 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants