HuangZhenQiu commented on a change in pull request #14678: URL: https://github.com/apache/flink/pull/14678#discussion_r559765455
########## File path: flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/failover/flip1/ExecutionFailureHandler.java ########## @@ -98,11 +103,22 @@ public FailureHandlingResult getGlobalFailureHandlingResult(final Throwable caus true); } + /** @param failureListener the failure listener to be registered */ + public void registerFailureListener(FailureListener failureListener) { + if (!failureListeners.contains(failureListener)) { + failureListeners.add(failureListener); Review comment: Yes, no need to filter. ---------------------------------------------------------------- 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: us...@infra.apache.org