mirror of https://github.com/apache/kafka.git
Add a wait for cleaner thread shutdown in `testCleanerThreadShutdown` to eliminate flakiness. After calling `cache.close()`, the test now uses `TestUtils.waitForCondition` to poll until the background “remote-log-index-cleaner” thread has fully exited before asserting that no cleaner threads remain. This ensures the asynchronous shutdown always completes before the final assertions. Reviewers: TengYao Chi <kitingiao@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com> |
||
---|---|---|
.. | ||
api/src | ||
src |