zhuzhurk commented on a change in pull request #13422:
URL: https://github.com/apache/flink/pull/13422#discussion_r491878476
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/strategy/PipelinedRegionSchedulingStrategy.java
##########
@@ -127,13 +136,9 @@ private void maybeScheduleRegion(final
SchedulingPipelinedRegion region) {
checkState(areRegionVerticesAllInCreatedState(region), "BUG:
trying to schedule a region which is not in CREATED state");
- final Set<ExecutionVertexID> verticesToSchedule =
IterableUtils.toStream(region.getVertices())
- .map(SchedulingExecutionVertex::getId)
- .collect(Collectors.toSet());
final List<ExecutionVertexDeploymentOption>
vertexDeploymentOptions =
-
SchedulingStrategyUtils.createExecutionVertexDeploymentOptionsInTopologicalOrder(
- schedulingTopology,
- verticesToSchedule,
+
SchedulingStrategyUtils.createExecutionVertexDeploymentOptions(
Review comment:
I think it's not needed. Because the sorting is not a problem for other
strategies where the sorting is invoked once per triggering event. While for
pipelined region scheduling, it is invoked multiple times, each for one region.
And doing it like this requires to add a sorted region vertex map for other
strategies.
----------------------------------------------------------------
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:
[email protected]