azagrebin commented on a change in pull request #13958: URL: https://github.com/apache/flink/pull/13958#discussion_r518791192
########## File path: flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/adapter/DefaultExecutionTopology.java ########## @@ -91,6 +88,8 @@ public DefaultExecutionTopology(ExecutionGraph graph) { this.pipelinedRegionsByVertex = new HashMap<>(); this.pipelinedRegions = new ArrayList<>(); initializePipelinedRegions(); + + ensureCoLocatedVerticesInSameRegion(); Review comment: Maybe a side note not for this PR: I would put `initializePipelinedRegions` and `ensureCoLocatedVerticesInSameRegion` into a factory method `fromExecutionGraph`. ---------------------------------------------------------------- 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