showuon commented on PR #15523:
URL: https://github.com/apache/kafka/pull/15523#issuecomment-1996775024

   If the root cause of the flaky test is the `ShutdownableThreadTest` is not 
running, could we add `TestUtils.waitUntilTrue(() => 
cache.cleanerThread.isStarted)` before we invoke `cache.close()`? 
   
   I saw there's a method to check thread isRunning, but it's actually checking 
the thread is `not closing`. Maybe we can add a method to check the 
`ShutdownableThread#isStarted` value?


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