-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-27440 fix table HistogramMetrics leak in table metrics map #4838
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
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
@@ -532,4 +534,9 @@ public void clearMetrics() { | |||
} | |||
metricsMap.clear(); | |||
} | |||
|
|||
@VisibleForTesting |
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.
We do not allow VisibleForTesting annotation now.
Please use RestrictedApi to restrict the usage.
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.
ok thx
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.
@Apache9 I've already changed it, pls help me review, thx a lot!
💔 -1 overall
This message was automatically generated. |
Please run |
done, thx very mush |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
Signed-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit d187f69)
Signed-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit d187f69)
Signed-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit d187f69)
…e metrics map (apache#4838) Signed-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit d187f69)
the method removeHistogramMetrics will cause the metricsMap leak!
because the put op in the map is the baseName but the remove is not , the origin code add the histogramSuffixe follow the baseName when remove.