StephanEwen commented on a change in pull request #8740: [FLINK-12763][runtime]
Fail job immediately if tasks’ resource needs can not be satisfied.
URL: https://github.com/apache/flink/pull/8740#discussion_r300367852
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/Execution.java
##########
@@ -575,7 +574,7 @@ public void setInitialState(@Nullable
JobManagerTaskRestore taskRestore) {
slotRequestId,
toSchedule,
new SlotProfile(
-
ResourceProfile.UNKNOWN,
+
vertex.calculateResourceProfile(),
Review comment:
We should avoid calculating this for every subtask and execution attempt.
One option could be to compute it once in the `ExecutionJobVertex` when it
is build from the `JobVertex`.
----------------------------------------------------------------
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]
With regards,
Apache Git Services