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

cluster_recovery: direct requests to controller leader #15740

Merged
merged 2 commits into from
Dec 19, 2023

Conversation

andrwng
Copy link
Contributor

@andrwng andrwng commented Dec 18, 2023

For robustness of the endpoint, it's expected that the restore and subsequent status calls are directed to the leader. Otherwise, a random stale node could indicate that no recovery is in progress, while it actually is.

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v23.3.x
  • v23.2.x
  • v23.1.x

Release Notes

  • none

Now that controller leaders are the ones that drive restore, the status
endpoint should also be the one to report cluster recovery. Otherwise,
the cluster restore may indicate completion without actually having
finished the restore.
Cluster restore is driven by the controller leader. The `rpk` command
should follow suit.
@andrwng
Copy link
Contributor Author

andrwng commented Dec 19, 2023

CI failure: #15679

@piyushredpanda piyushredpanda merged commit 90598fa into redpanda-data:dev Dec 19, 2023
25 of 27 checks passed
@vbotbuildovich
Copy link
Collaborator

/backport v23.3.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants