tillrohrmann commented on a change in pull request #7568: [FLINK-11417] Make 
access to ExecutionGraph single threaded from JobMaster main thread
URL: https://github.com/apache/flink/pull/7568#discussion_r250628660
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/ExecutionGraph.java
 ##########
 @@ -1289,6 +1330,9 @@ public void restoreLatestCheckpointedState(boolean 
errorIfNoCheckpoint, boolean
         */
        @Override
        public ArchivedExecutionConfig getArchivedExecutionConfig() {
+
+               assertRunningInJobMasterMainThread();
 
 Review comment:
   I think this method is read only and does not change the EG state. Thus, it 
should be ok to call it from any thread.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to