shartte commented on PR #2238: URL: https://github.com/apache/zookeeper/pull/2238#issuecomment-3073551631
@cnauroth I am actually running into the same issue and would probably propose a different fix. The issue I see is that there are references to the dropwizard metrics classes used even when the following is configured for the embedded ZooKeeper server: ```java zookeeperConfig.put("metricsProvider.className", NullMetricsProvider.class.getName()); ``` The reason seems to be that a static field intended for tests *forces* an instance of the DefaultMetricsProvider to be created whether an embedder wants it or not, here: https://github.com/apache/zookeeper/blame/6c5f788ee3e58e09d369339a8128bc07cbbc6d03/zookeeper-server/src/main/java/org/apache/zookeeper/server/ServerMetrics.java#L46 -- 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: notifications-unsubscr...@zookeeper.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org