XComp commented on a change in pull request #14798:
URL: https://github.com/apache/flink/pull/14798#discussion_r567417575



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/failover/flip1/FailureHandlingResult.java
##########
@@ -100,17 +116,22 @@ public long getRestartDelayMS() {
         }
     }
 
+    /**
+     * Returns the {@link ExecutionVertexID} of the task causing this failure.
+     *
+     * @return The {@code ExecutionVertexID} or {@code null} if it's a global 
failure.
+     */
+    public ExecutionVertexID getExecutionVertexIdOfFailedTask() {

Review comment:
       I switched to returning an `Optional` to make this more explicit.




----------------------------------------------------------------
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]


Reply via email to