zentol commented on PR #21137:
URL: https://github.com/apache/flink/pull/21137#issuecomment-1300443324

   I'm not really sold on the idea of solving a deadlock by introducing yet 
another thread into the mix.
   
   To me the issue stems more from both the runner and election service calling 
into each other under locks, and locks maybe being way too broad.
   For example, why is `Runner#closeAsync` doing the entire shutdown under the 
lock? Modifying the state _should_ suffice, because all other operations are 
checking that it's running.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to