georgew5656 commented on code in PR #20129:
URL: https://github.com/apache/kafka/pull/20129#discussion_r2237523721


##########
storage/src/test/java/org/apache/kafka/server/log/remote/storage/RemoteLogManagerTest.java:
##########
@@ -3412,8 +3412,14 @@ public void testCopyQuota(boolean quotaExceeded) throws 
Exception {
             Map<org.apache.kafka.common.MetricName, KafkaMetric> allMetrics = 
metrics.metrics();
             KafkaMetric avgMetric = 
allMetrics.get(metrics.metricName("remote-copy-throttle-time-avg", 
"RemoteLogManager"));
             KafkaMetric maxMetric = 
allMetrics.get(metrics.metricName("remote-copy-throttle-time-max", 
"RemoteLogManager"));
-            assertEquals(Double.NaN, avgMetric.metricValue());
-            assertEquals(Double.NaN, maxMetric.metricValue());
+            if (quotaExceeded) {

Review Comment:
   i left it in because it looks like the original test author intended to test 
this logic with quotaExceeded=true as well.



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