-
Notifications
You must be signed in to change notification settings - Fork 598
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
fix: Remove possible panic in metrics clean up. #13004
Conversation
Codecov Report
@@ Coverage Diff @@
## main #13004 +/- ##
==========================================
+ Coverage 68.26% 68.28% +0.02%
==========================================
Files 1498 1498
Lines 252740 252565 -175
==========================================
- Hits 172524 172457 -67
+ Misses 80216 80108 -108
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 5 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just introduce a label guarded metrics in #12882 that will automatically remove the label when the metrics variable is dropped. May consider porting these metrics to use the label guarded one?
4d40beb
to
cb6feef
Compare
Done. |
cc @wenym1 Any other comments? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just realize that the current label guarded metrics may drop the label before it is collected, which will cause a loss of metrics. I will have a new PR to fix this first.
Can be fixed by #13080 |
Support for label guarded Gauge is supported in #13080 by the way. Related code in this PR can be removed. |
I think it's already removed in this pr. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rest LGTM!
b1f98d1
to
5e70132
Compare
5e70132
to
1305d4d
Compare
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Remove possible panic in metrics cleanup.
Close #12489
Checklist
./risedev check
(or alias,./risedev c
)Documentation
Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.