zentol commented on code in PR #22296:
URL: https://github.com/apache/flink/pull/22296#discussion_r1154104747
##########
flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/JobMaster.java:
##########
@@ -944,6 +940,19 @@ public CompletableFuture<Acknowledge>
notifyNewBlockedNodes(Collection<BlockedNo
return CompletableFuture.completedFuture(Acknowledge.get());
}
+ @Override
+ public CompletableFuture<Map<JobVertexID, Integer>>
getMaxParallelismPerVertex() {
+ final Map<JobVertexID, Integer> maxParallelismPerVertex = new
HashMap<>();
+ for (JobVertex vertex : jobGraph.getVertices()) {
+ maxParallelismPerVertex.put(
+ vertex.getID(),
+ vertex.getMaxParallelism() !=
JobVertex.MAX_PARALLELISM_DEFAULT
+ ? vertex.getMaxParallelism()
Review Comment:
Should add a test that this now respects the user-specified max parallelism
--
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]