tillrohrmann commented on a change in pull request #7255: [FLINK-10945] Use 
InputDependencyConstraint to avoid resource dead…
URL: https://github.com/apache/flink/pull/7255#discussion_r246064697
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/ExecutionGraphBuilder.java
 ##########
 @@ -179,6 +179,13 @@ public static ExecutionGraph buildGraph(
                executionGraph.setScheduleMode(jobGraph.getScheduleMode());
                
executionGraph.setQueuedSchedulingAllowed(jobGraph.getAllowQueuedScheduling());
 
+               try {
+                       executionGraph.setInputDependencyConstraint(
+                
jobGraph.getSerializedExecutionConfig().deserializeValue(classLoader).getInputDependencyConstraint());
 
 Review comment:
   I understand that this was the easiest way how to get the 
`InputDependencyConstraint` into the `ExecutionGraph` but I think it should be 
part of the `JobVertex`, because it is not a global setting but rather controls 
how each vertex is scheduled.

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