lhotari commented on PR #19217:
URL: https://github.com/apache/pulsar/pull/19217#issuecomment-1381084031

   There's a flaky assertion in the test case and after retry, the problem 
changed to the "Failed to register Collector of type Counter: 
test_counter_total is already in use by another Collector of type Counter" 
failure. 
   This issue was visible from the Unit-PROXY-surefire-reports.zip file and the 
`pulsar-proxy/target/surefire-reports/TEST-org.apache.pulsar.proxy.server.ProxyPrometheusMetricsTest.xml`
 xml file inside the zip file. The actual problem didn't get recorded in the 
console at all. 
   
   ```xml
   <testcase name="testMetrics" 
classname="org.apache.pulsar.proxy.server.ProxyPrometheusMetricsTest" time="0">
   <skipped message="expected [1] but found [0]"/>
   <system-out>
   <![CDATA[ Created annotation listener ------- Starting test [TestClass 
name=class 
org.apache.pulsar.proxy.server.ProxyPrometheusMetricsTest].testMetrics([])-------
 2023-01-12T22:26:42,592 - INFO - 
[pulsar-external-web-401-6:Slf4jRequestLogWriter@62] - 10.1.0.28 - - 
[12/Jan/2023:22:26:42 +0000] "GET /metrics HTTP/1.1" 302 0 "-" "Jersey/2.34 
(HttpUrlConnection 17.0.5)" 1 2023-01-12T22:26:42,658 - INFO - 
[prometheus-stats-402-1:Slf4jRequestLogWriter@62] - 10.1.0.28 - - 
[12/Jan/2023:22:26:42 +0000] "GET /metrics/ HTTP/1.1" 200 4075 "-" "Jersey/2.34 
(HttpUrlConnection 17.0.5)" 61 ]]>
   </system-out>
   <system-err>
   <![CDATA[ Jan 12, 2023 10:26:37 PM 
org.glassfish.jersey.server.wadl.WadlFeature configure WARNING: JAXBContext 
implementation could not be found. WADL feature is disabled. Jan 12, 2023 
10:26:37 PM org.glassfish.jersey.server.wadl.WadlFeature configure WARNING: 
JAXBContext implementation could not be found. WADL feature is disabled. Jan 
12, 2023 10:26:38 PM org.glassfish.jersey.server.wadl.WadlFeature configure 
WARNING: JAXBContext implementation could not be found. WADL feature is 
disabled. Jan 12, 2023 10:26:40 PM org.glassfish.jersey.server.wadl.WadlFeature 
configure WARNING: JAXBContext implementation could not be found. WADL feature 
is disabled. Jan 12, 2023 10:26:41 PM 
org.glassfish.jersey.server.wadl.WadlFeature configure WARNING: JAXBContext 
implementation could not be found. WADL feature is disabled. Jan 12, 2023 
10:26:41 PM org.glassfish.jersey.server.wadl.WadlFeature configure WARNING: 
JAXBContext implementation could not be found. WADL feature is disabled. Jan 
12, 2023 
 10:26:42 PM org.glassfish.jersey.server.wadl.WadlFeature configure WARNING: 
JAXBContext implementation could not be found. WADL feature is disabled. Jan 
12, 2023 10:26:42 PM org.glassfish.jersey.server.wadl.WadlFeature configure 
WARNING: JAXBContext implementation could not be found. WADL feature is 
disabled. ]]>
   </system-err>
   </testcase>
   <testcase name="testMetrics" 
classname="org.apache.pulsar.proxy.server.ProxyPrometheusMetricsTest" 
time="0.022">
   <failure message="Failed to register Collector of type Counter: 
test_counter_total is already in use by another Collector of type Counter" 
type="java.lang.IllegalArgumentException">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.jav
 a: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) </failure>
   <system-out>
   <![CDATA[ ~~~~~~~~~ SKIPPED -- [TestClass name=class 
org.apache.pulsar.proxy.server.ProxyPrometheusMetricsTest].testMetrics([])-------
 2023-01-12T22:26:44,773 - INFO - [Thread-39:MetadataStoreCacheLoader@68] - 
Successfully updated broker info [] ------- Starting test [TestClass name=class 
org.apache.pulsar.proxy.server.ProxyPrometheusMetricsTest].testMetrics([])-------
 ]]>
   </system-out>
   <system-err>
   <![CDATA[ Jan 12, 2023 10:26:45 PM 
org.glassfish.jersey.server.wadl.WadlFeature configure WARNING: JAXBContext 
implementation could not be found. WADL feature is disabled. Jan 12, 2023 
10:26:45 PM org.glassfish.jersey.server.wadl.WadlFeature configure WARNING: 
JAXBContext implementation could not be found. WADL feature is disabled. Jan 
12, 2023 10:26:47 PM org.glassfish.jersey.server.wadl.WadlFeature configure 
WARNING: JAXBContext implementation could not be found. WADL feature is 
disabled. Jan 12, 2023 10:26:49 PM org.glassfish.jersey.server.wadl.WadlFeature 
configure WARNING: JAXBContext implementation could not be found. WADL feature 
is disabled. Jan 12, 2023 10:26:50 PM 
org.glassfish.jersey.server.wadl.WadlFeature configure WARNING: JAXBContext 
implementation could not be found. WADL feature is disabled. Jan 12, 2023 
10:26:50 PM org.glassfish.jersey.server.wadl.WadlFeature configure WARNING: 
JAXBContext implementation could not be found. WADL feature is disabled. Jan 
12, 2023 
 10:26:50 PM org.glassfish.jersey.server.wadl.WadlFeature configure WARNING: 
JAXBContext implementation could not be found. WADL feature is disabled. Jan 
12, 2023 10:26:50 PM org.glassfish.jersey.server.wadl.WadlFeature configure 
WARNING: JAXBContext implementation could not be found. WADL feature is 
disabled. ]]>
   </system-err>
   </testcase>
   ```


-- 
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