algod : deregister metrics tracker on close#3661
Merged
tsachiherman merged 2 commits intoalgorand:masterfrom Feb 22, 2022
Merged
algod : deregister metrics tracker on close#3661tsachiherman merged 2 commits intoalgorand:masterfrom
tsachiherman merged 2 commits intoalgorand:masterfrom
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
suggested changes
Feb 18, 2022
Contributor
tsachiherman
left a comment
There was a problem hiding this comment.
I'm not opposing to this change, but please make sure to look into Registry.Deregister; it looks like it not thread-safe.
Contributor
Author
|
|
fad2a91 to
0fff86d
Compare
Contributor
Author
|
Looks like |
tsachiherman
approved these changes
Feb 22, 2022
This was referenced Feb 28, 2022
Closed
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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