-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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][proxy] Cleanup default collector registry when closing the ProxyServiceStarter #19062
[fix][proxy] Cleanup default collector registry when closing the ProxyServiceStarter #19062
Conversation
Cleanup collector registry when closing the ProxyServiceStarter in test.
/pulsarbot run-failure-checks |
Codecov Report
@@ Coverage Diff @@
## master #19062 +/- ##
============================================
- Coverage 47.11% 46.90% -0.22%
+ Complexity 10595 10588 -7
============================================
Files 710 710
Lines 69423 69424 +1
Branches 7449 7449
============================================
- Hits 32709 32563 -146
- Misses 33037 33228 +191
+ Partials 3677 3633 -44
Flags with carried forward coverage won't be shown. Click here to find out more.
|
This change has to be reverted or revisited since it's causing a lot of build failures. The issue is #19216. Counters registered in static field initializers such as pulsar/pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/ProxyService.java Lines 137 to 138 in accae9f
|
I'm working on a revisited change. |
…the ProxyServiceStarter (apache#19062)" This reverts commit b24034f.
Fixes: #19011
Motivation
Related issue #19011.
Most of the tests are all based on the class
TestRetrySupport
, which supports resetting the broken test environments, theProxyServiceStarter
will register metrics in the default collector registry if we restart theProxyServiceStarter
, it will throw the exception like this.Modifications
Clean up the default collector registry when closing the
ProxyServiceStarter
.Verifying this change
This change is already covered by existing tests.
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: gaoran10#20