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

[v24.2.x] c/controller_backend: allow shutdown_partition to fail on app shutdown #24372

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #24358

With `ss::gate_closed_exception` only. This is to untangle a race
condition between partition shutdown and app shutdown. Callers should
consider the operation unsuccessful and will probably retry it, as
`shard_placement_table` is not going to be updated.

While this unsuccessful operation will leave the partition in a somewhat
orphaned state, i.e. without appropriate `shard_table` entries, the rest
of the system should be able to live with it in the same way as it lives
during a successful partition shutdown.

(cherry picked from commit 0bb1be6)
@vbotbuildovich vbotbuildovich added this to the v24.2.x-next milestone Nov 29, 2024
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Nov 29, 2024
@piyushredpanda piyushredpanda merged commit 9165ae5 into redpanda-data:v24.2.x Nov 29, 2024
17 checks passed
@piyushredpanda piyushredpanda modified the milestones: v24.2.x-next, v24.2.13 Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants