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

Explicitly deregister log metrics #8548

Merged
merged 2 commits into from
Feb 1, 2023
Merged

Conversation

mmaslankaprv
Copy link
Member

@mmaslankaprv mmaslankaprv commented Feb 1, 2023

Even when the log is closed some of the user may still hold the log
instance alive preventing metrics from being deregistred. Added explicit
metrics deregistration when log is closed or removed.

Fixes: #7983

Backports Required

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

UX Changes

Release Notes

  • none

Signed-off-by: Michal Maslanka <michal@redpanda.com>
Even when the log is closed some of the user may still hold the log
instance alive preventing metrics from being deregistred. Added explicit
metrics deregistration when log is closed or removed.

Signed-off-by: Michal Maslanka <michal@redpanda.com>
@jcsp jcsp merged commit daac382 into redpanda-data:dev Feb 1, 2023
@jcsp
Copy link
Contributor

jcsp commented Feb 1, 2023

I think we might have seen this one in the field as well, so backporting to 22.3

@jcsp
Copy link
Contributor

jcsp commented Feb 1, 2023

/backport v22.3

@jcsp
Copy link
Contributor

jcsp commented Feb 1, 2023

/backport v22.3.x

@vbotbuildovich
Copy link
Collaborator

Oops! Something went wrong.

Workflow run logs.

@vbotbuildovich
Copy link
Collaborator

Failed to run cherry-pick command. I executed the below command:

git cherry-pick -x 21d29a72edb3f0a8e9a28cd6535b8655162da137 dd35d234a85a0ec4e3deb0cbd3c6c8e1102ecbf2

Workflow run logs.

@piyushredpanda
Copy link
Contributor

@jcsp
Copy link
Contributor

jcsp commented Feb 1, 2023

Backport: #8556

@jcsp
Copy link
Contributor

jcsp commented Feb 1, 2023

Ooh this fixes https://github.com/redpanda-data/core-internal/issues/300?

No idea, that ticket doesn't mention an assertion

@piyushredpanda
Copy link
Contributor

Sorry that is a dupe of https://github.com/redpanda-data/core-internal/issues/285 (which I think is #300 dupe)?

@jcsp
Copy link
Contributor

jcsp commented Feb 1, 2023

ok, this PR is definitely not the same as #285

@BenPope
Copy link
Member

BenPope commented Feb 1, 2023

Are v22.2.x and v22.1.x not affected by this?

@jcsp
Copy link
Contributor

jcsp commented Feb 1, 2023

They may well be, but this didn't strike me as severe enough (+ I think we may never have seen it on the field on older clusters) for the extra manual backports.

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.

Metrics double_registration (storage_log_written_bytes)
5 participants