-
Notifications
You must be signed in to change notification settings - Fork 524
algod : deregister metrics tracker on close #3661
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3661 +/- ##
==========================================
+ Coverage 48.12% 48.13% +0.01%
==========================================
Files 381 381
Lines 62214 62223 +9
==========================================
+ Hits 29939 29950 +11
+ Misses 28847 28844 -3
- Partials 3428 3429 +1
Continue to review full report at Codecov.
|
tsachiherman
left a comment
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'm not opposing to this change, but please make sure to look into Registry.Deregister; it looks like it not thread-safe.
|
|
fad2a91 to
0fff86d
Compare
|
Looks like |
Summary
Metrics counters where not cleared on close and lead to duplicate entries in metering report.
Test Plan
Added unit test. Tested manually.
Closes #3354