raminqaf opened a new pull request, #16914: URL: https://github.com/apache/kafka/pull/16914
*More detailed description* I have replaced the `sleep` method with a `CountDownLatch`. It will await until the latch count reaches zero. The decrease happens in the `setState` method when the state's status changes from `CREATED` to any other state. *Summary of testing strategy* All the tests in `GlobalStreamThreadTest` pass, which should indicate that the class's behavior has remained unchanged. ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) -- 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]
