dopuskh3 commented on code in PR #16210:
URL: https://github.com/apache/kafka/pull/16210#discussion_r1636127214
##########
core/src/test/java/kafka/log/remote/RemoteLogManagerTest.java:
##########
@@ -1018,8 +1018,8 @@ void testRemoteLogManagerRemoteMetrics() throws Exception
{
safeLongYammerMetricValue("RemoteCopyLagBytes,topic="
+ leaderTopic),
safeLongYammerMetricValue("RemoteCopyLagBytes")));
TestUtils.waitForCondition(
- () -> 1 == safeLongYammerMetricValue("RemoteCopyLagSegments")
&& 1 == safeLongYammerMetricValue("RemoteCopyLagSegments,topic=" + leaderTopic),
- String.format("Expected to find 1 for RemoteCopyLagSegments
metric value, but found %d for topic 'Leader' and %d for all topics.",
+ () -> 0 == safeLongYammerMetricValue("RemoteCopyLagSegments")
&& 0 == safeLongYammerMetricValue("RemoteCopyLagSegments,topic=" + leaderTopic),
Review Comment:
Updated, PTAL.
--
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]