bytesandwich commented on a change in pull request #15898: URL: https://github.com/apache/flink/pull/15898#discussion_r667173863
########## 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: Is this the same behavior as the original method: https://github.com/apache/flink/blob/d105eb32cda5f903eebc7a1019de44fdc1ec8472/flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/SchedulerBase.java#L519 ? -- 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