You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by pe...@apache.org on 2022/12/27 00:13:38 UTC

[pulsar] branch master updated: [fix][proxy] Cleanup default collector registry when closing the ProxyServiceStarter (#19062)

This is an automated email from the ASF dual-hosted git repository.

penghui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new b24034fa444 [fix][proxy] Cleanup default collector registry when closing the ProxyServiceStarter (#19062)
b24034fa444 is described below

commit b24034fa4442d3f75a6ab5c2e7bd66d2a5e2e260
Author: ran <ga...@126.com>
AuthorDate: Tue Dec 27 08:13:27 2022 +0800

    [fix][proxy] Cleanup default collector registry when closing the ProxyServiceStarter (#19062)
---
 .../main/java/org/apache/pulsar/proxy/server/ProxyServiceStarter.java    | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/ProxyServiceStarter.java b/pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/ProxyServiceStarter.java
index bda50a4d689..8e7e3abf9c7 100644
--- a/pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/ProxyServiceStarter.java
+++ b/pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/ProxyServiceStarter.java
@@ -240,6 +240,7 @@ public class ProxyServiceStarter {
             if (server != null) {
                 server.stop();
             }
+            CollectorRegistry.defaultRegistry.clear();
         } catch (Exception e) {
             log.warn("server couldn't stop gracefully {}", e.getMessage(), e);
         } finally {