showuon commented on code in PR #15026:
URL: https://github.com/apache/kafka/pull/15026#discussion_r1432207715
##########
core/src/test/java/kafka/log/remote/RemoteLogManagerTest.java:
##########
@@ -701,16 +702,22 @@ void
testRemoteLogManagerTasksAvgIdlePercentAndMetadataCountMetrics() throws Exc
CountDownLatch copyLogSegmentLatch = new CountDownLatch(1);
doAnswer(ans -> {
// waiting for verification
- copyLogSegmentLatch.await();
+ copyLogSegmentLatch.await(5000, TimeUnit.MILLISECONDS);
Review Comment:
Put await timeout to avoid to wait forever.
--
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]