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.1.x] [CORE-5632] cluster: Reset cloud storage metric in the cluster::partition::remove_persistent_state #21620

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #21581

... in the partition::remove_persistent state. The probe has access to
the global state so it's not safe to keep it after the partition is
stopped and `remove_persistent_state` method is invoked. In cases when
the partition is recreated with different revision id the 'double metric
registration' error could be triggered.

The double metric registration exception prevents normal parittion
removal and subsequent partition creation may trigger assertion.

(cherry picked from commit 51af1b4)
@vbotbuildovich vbotbuildovich added this to the v24.1.x-next milestone Jul 24, 2024
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Jul 24, 2024
@BenPope
Copy link
Member

BenPope commented Aug 5, 2024

@Lazin is this blocked on anything?

@piyushredpanda piyushredpanda merged commit e6d6da2 into redpanda-data:v24.1.x Aug 9, 2024
18 checks passed
@piyushredpanda piyushredpanda modified the milestones: v24.1.x-next, v24.1.15 Aug 9, 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.

4 participants