lhotari opened a new pull request #10599:
URL: https://github.com/apache/pulsar/pull/10599


   ### Motivation
   
   `GracefulExecutorServicesShutdownTest`'s 
`shouldTerminateWhenFutureIsCancelled` remains flaky after #10592 .
   
   Example failure: 
https://github.com/apache/pulsar/pull/10598/checks?check_run_id=2590214027#step:10:1341
   
   ### Modifications
   
   - fix race condition in test by adding a CountDownLatch to verify that 
execution has entered the awaitTermination method before the future is 
cancelled.
   - use CompletableFuture for awaitTerminationInterrupted check.


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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to