Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ashrayjain
Copy link
Contributor

@ashrayjain ashrayjain commented Oct 3, 2018

First commit adds a test that consistently panics due to the Each() implementation handling concurrent Unregister calls correctly.

Second commit adds a fix.


This change is Reviewable

} else {
// if metric was not in idToMetricWithTags map, then it is a built-in metric. Trim the prefix since the
// registry lookup will automatically prepend the prefix.
metric = r.registry.Get(name)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this part was redundant

@gdearment gdearment merged commit 05f3741 into palantir:master Oct 3, 2018
@ashrayjain ashrayjain deleted the aj/fix-race branch October 3, 2018 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants