zlzhang0122 commented on code in PR #18523: URL: https://github.com/apache/flink/pull/18523#discussion_r1092862838
########## 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: @yuchen-ecnu Maybe we can keep the json plan generation in `DefaultExecutionGraphBuilder` and reset here again?I'm not quite sure. WDYT? -- 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-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org