[ 
https://issues.apache.org/jira/browse/KAFKA-18537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17948961#comment-17948961
 ] 

Chia-Ping Tsai commented on KAFKA-18537:
----------------------------------------

It should be test by TestUtils.waitForCondition as `getAllStackTraces` is a 
snapshot of threads. Hence, it may return out-of-date results. 

> Fix flaky RemoteIndexCacheTest#testCleanerThreadShutdown
> --------------------------------------------------------
>
>                 Key: KAFKA-18537
>                 URL: https://issues.apache.org/jira/browse/KAFKA-18537
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: PoAn Yang
>            Priority: Major
>
> This case failed 13 times in last month. Most of failure message is like 
> following:
> {noformat}
> org.opentest4j.AssertionFailedError: Found unexpected 1 
> threads=remote-log-index-cleaner ==> expected: <true> but was: <false>
> at 
> org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
> at 
> org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)at
>  org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
> at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)
> at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:214)
> at 
> kafka.log.remote.RemoteIndexCacheTest.testCleanerThreadShutdown(RemoteIndexCacheTest.scala:333){noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to