zhuzhurk commented on a change in pull request #14020:
URL: https://github.com/apache/flink/pull/14020#discussion_r523932872



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/adapter/DefaultExecutionTopology.java
##########
@@ -140,6 +115,53 @@ public DefaultSchedulingPipelinedRegion 
getPipelinedRegionOfVertex(final Executi
                return pipelinedRegion;
        }
 
+       public static DefaultExecutionTopology 
fromExecutionGraph(ExecutionGraph executionGraph) {
+               checkNotNull(executionGraph, "execution graph can not be null");
+
+               ExecutionGraphIndex executionGraphIndex = 
computeExecutionGraphIndex(
+                       executionGraph.getAllExecutionVertices(),
+                       executionGraph.getNumberOfExecutionJobVertices());

Review comment:
       ```suggestion
                        executionGraph.getTotalNumberOfVertices());
   ```




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