-
Notifications
You must be signed in to change notification settings - Fork 553
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: avoid throwing on duplicate recovery #17563
cluster: avoid throwing on duplicate recovery #17563
Conversation
This adds a conservative check for in-progress recoveries at bootstrap time: if a recovery is in progress, we will log an error message instead of throwing. In practice we don't expect this error code to be hit, but in case of a bug or somesuch, this seems preferable over throwing and blocking applying controller messages. Note that update_in_progress is the only error code to come out of cluster_recovery_table::apply().
ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/47255#018ea1a9-3797-4822-927e-c1aa2ec64eff ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/47255#018ea1a9-379c-4a16-a377-cc66aefd4cb9 |
Thanks for the review! |
/backport v23.3.x |
Failed to create a backport PR to v23.3.x branch. I tried:
|
@andrwng why backport? wasn't this all a clang-tidy cleanup patch to begin with? |
Ah I thought the cleanup patch was being backported so I followed suit. Will close the backport since looks like that backport has also been closed |
ahh, right on. yeh seems like maybe it won't be backported as there were some conflicts or something. |
This adds a conservative check for in-progress recoveries at bootstrap time: if a recovery is in progress, we will log an error message instead of throwing.
In practice we don't expect this error code to be hit, but in case of a bug or somesuch, this seems preferable over throwing and blocking applying controller messages.
Note that update_in_progress is the only error code to come out of cluster_recovery_table::apply().
Backports Required
Release Notes