apoorvmittal10 commented on code in PR #15251:
URL: https://github.com/apache/kafka/pull/15251#discussion_r1469854621


##########
server/src/test/java/org/apache/kafka/server/ClientMetricsManagerTest.java:
##########
@@ -299,8 +332,8 @@ public void 
testGetTelemetrySameClientImmediateRetryAfterPushFail() throws Unkno
         // Create new client metrics manager which simulates a new server as 
it will not have any
         // last request information but request should succeed as subscription 
id should match
         // the one with new client instance.
-
-        ClientMetricsManager newClientMetricsManager = new 
ClientMetricsManager(clientMetricsReceiverPlugin, 100, time);
+        kafkaMetrics = new Metrics();

Review Comment:
   The reason of construction is that I do not want to associate earlier 
instance of kafkaMetrics to new client manager instance else the metrics will 
collide. Hence created the new one when another instance of client manger is 
created.



-- 
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: jira-unsubscr...@kafka.apache.org

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

Reply via email to