You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "yuchen-ecnu (via GitHub)" <gi...@apache.org> on 2023/01/31 12:34:21 UTC
[GitHub] [flink] yuchen-ecnu commented on a diff in pull request #18523: [FLINK-25068][Runtime/Web] Show the maximum parallelism(number of key groups) of a job in Web UI
yuchen-ecnu commented on code in PR #18523:
URL: https://github.com/apache/flink/pull/18523#discussion_r1091814885
##########
flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/DefaultExecutionGraphFactory.java:
##########
@@ -197,9 +199,23 @@ public ExecutionGraph createAndRestoreExecutionGraph(
// check whether we can restore from a savepoint
tryRestoreExecutionGraphFromSavepoint(
newExecutionGraph, jobGraph.getSavepointRestoreSettings());
+
+ for (JobVertex jobVertex : jobGraph.getVertices()) {
+ int maxParallelism =
+ newExecutionGraph
+ .getAllVertices()
+ .get(jobVertex.getID())
+ .getMaxParallelism();
+
+ jobVertex.setMaxParallelism(maxParallelism);
+ }
}
}
+ // set the basic properties
+
+ newExecutionGraph.setJsonPlan(JsonPlanGenerator.generatePlan(jobGraph));
Review Comment:
What is the reason for moving the json plan generation from the `DefaultExecutionGraphBuilder` to here, and without `try-catch`?
--
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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org