frankvicky commented on PR #16941: URL: https://github.com/apache/kafka/pull/16941#issuecomment-2299281422
Loop comment: ``` I=0; while ./gradlew streams:test --tests DefaultTaskExecutorTest.shouldUnassignTaskWhenRequired --rerun --fail-fast; do (( I=$I+1 )); echo "Completed run: $I"; sleep 1; done ```  I believe the method’s functionality is normal, and the flakiness is caused by a race condition. Sometimes, the main thread checks for null before the worker thread assigns the value, causing the test to be flaky. However, I might have missed something. -- 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