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
   ```
   
   
![image](https://github.com/user-attachments/assets/e211b530-9b63-4f22-aeba-92a367a5366b)
   
   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

Reply via email to