lhotari opened a new issue, #19216:
URL: https://github.com/apache/pulsar/issues/19216

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) 
and found nothing similar.
   
   
   ### Example failure
   
   
https://github.com/apache/pulsar/actions/runs/3905486374/jobs/6672708495#step:11:441
   
   ### Exception stacktrace
   
   ```
     Error:  Tests run: 6, Failures: 1, Errors: 0, Skipped: 5, Time elapsed: 
14.542 s <<< FAILURE! - in 
org.apache.pulsar.proxy.server.ProxyPrometheusMetricsTest
     Error:  
testMetrics(org.apache.pulsar.proxy.server.ProxyPrometheusMetricsTest)  Time 
elapsed: 0.031 s  <<< FAILURE!
     java.lang.IllegalArgumentException: Failed to register Collector of type 
Counter: test_counter_total is already in use by another Collector of type 
Counter
        at 
io.prometheus.client.CollectorRegistry.register(CollectorRegistry.java:57)
        at io.prometheus.client.Collector.register(Collector.java:307)
        at io.prometheus.client.Collector.register(Collector.java:300)
        at 
org.apache.pulsar.proxy.server.ProxyPrometheusMetricsTest.testMetrics(ProxyPrometheusMetricsTest.java:99)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at 
org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:139)
        at 
org.testng.internal.invokers.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:47)
        at 
org.testng.internal.invokers.InvokeMethodRunnable.call(InvokeMethodRunnable.java:76)
        at 
org.testng.internal.invokers.InvokeMethodRunnable.call(InvokeMethodRunnable.java:11)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:833)
   ```
   
   ### Are you willing to submit a PR?
   
   - [X] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to