XComp commented on a change in pull request #15898:
URL: https://github.com/apache/flink/pull/15898#discussion_r681689857
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/adaptive/StateWithExecutionGraph.java
##########
@@ -110,6 +121,22 @@ ExecutionGraph getExecutionGraph() {
return executionGraph;
}
+ ExecutionVertex getExecutionVertex(final ExecutionVertexID
executionVertexId) {
+ return executionGraph
+ .getAllVertices()
+ .get(executionVertexId.getJobVertexId())
+ .getTaskVertices()[executionVertexId.getSubtaskIndex()];
+ }
+
+ @Nullable
+ protected ExecutionVertexID getExecutionVertexId(ExecutionAttemptID id) {
+ Execution execution =
getExecutionGraph().getRegisteredExecutions().get(id);
+ if (execution == null) {
Review comment:
Not sure whether I understand you correctly: The method implementation
exists in `SchedulerBase` as well, yes.
--
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]