tillrohrmann commented on a change in pull request #11963:
URL: https://github.com/apache/flink/pull/11963#discussion_r420210915



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/TaskExecutor.java
##########
@@ -1794,9 +1816,12 @@ public void jobManagerLostLeadership(final JobID jobId, 
final JobMasterId jobMas
                        log.info("JobManager for job {} with leader id {} lost 
leadership.", jobId, jobMasterId);
 
                        runAsync(() ->

Review comment:
       In order to check whether a connection is present, we need to access the 
TM's state. This needs to happen from the main thread in order to be consistent.




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