rkhachatryan commented on code in PR #23908:
URL: https://github.com/apache/flink/pull/23908#discussion_r1441711155


##########
flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/DefaultExecutionGraphFactory.java:
##########
@@ -159,6 +160,11 @@ public ExecutionGraph createAndRestoreExecutionGraph(
                     }
                 };
 
+        int totalNumberOfSubTasks =
+                StreamSupport.stream(jobGraph.getVertices().spliterator(), 
false)
+                        .mapToInt(jobVertex -> jobVertex.getParallelism())

Review Comment:
   We need to read the DoP from the store to account for rescaling; 
   otherwise, on downscaling, we'll get the old (high) DoP and won't report 
downscaling: 
   ```suggestion
                           .mapToInt(
                                   jobVertex ->
                                           vertexParallelismStore
                                                   
.getParallelismInfo(jobVertex.getID())
                                                   .getParallelism())
   ```



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to