You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/01/11 22:57:32 UTC

[GitHub] [pulsar] merlimat commented on a change in pull request #13704: [Transaction] Duplicate TYPE of Prometheus metrics

merlimat commented on a change in pull request #13704:
URL: https://github.com/apache/pulsar/pull/13704#discussion_r782587532



##########
File path: pulsar-broker/src/main/java/org/apache/pulsar/broker/stats/prometheus/TransactionAggregator.java
##########
@@ -36,6 +38,11 @@
 @Slf4j
 public class TransactionAggregator {
 
+    /**
+     * Used for tracking duplicate TYPE definitions.
+     */
+    static Map<String, String> metricWithTypeDefinition = new HashMap<>();

Review comment:
       This should be set as a thread-local variable, otherwise multiple instances of brokers will clash (eg: during unit tests)




-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org