FrankYang0529 commented on PR #18945:
URL: https://github.com/apache/kafka/pull/18945#issuecomment-2665591621

   @lianetm I have another idea to fix this and 
https://github.com/apache/kafka/pull/18665 together. Both cases has race 
condition in `HeartbeatThread`. How about we add a heartbeat thread supplier 
argument to `AbstractCoordinator`? Both cases are unit test. We can provide a 
mock heartbeat thread in test cases, so the poll action in heartbeat thread 
doesn't make cases flaky.


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