UladzislauBlok opened a new pull request, #19553:
URL: https://github.com/apache/kafka/pull/19553

   The root case of flakiness is race condition between worker thread (thread 
which is executing the test) and executor-testDelayedFuture (thread which 
should execute callback).
   
   It was fixed with TestUtils#waitForCondition to wait until callback will be 
done
   
   Test evidence:
   
   Test was running 1000 times with repeated test.
   
   Results:
   `~/p/kafka (bloku/kafka-19091) [1]> ./gradlew server:test --tests 
DelayedFutureTest --fail-fast > res.txt`
   `~/p/kafka (bloku/kafka-19091)> grep FAILED res.txt `
   `~/p/kafka (bloku/kafka-19091) [1]>`
   
   res.txt:
   `> Task :server:test`
   
   `Gradle Test Run :server:test > Gradle Test Executor 14 > DelayedFutureTest 
> testDelayedFuture() > repetition 1 of 1000 PASSED`
   
   ...
   
   `BUILD SUCCESSFUL in 37m`
   


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