This is an automated email from the ASF dual-hosted git repository.

davidradl pushed a commit to branch release-2.3
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/release-2.3 by this push:
     new 876143c61dc [FLINK-40086][runtime] Adds error handling to newly added 
preCompletionAction (#28700)
876143c61dc is described below

commit 876143c61dcef92e5396aec5fcead4af45ba532c
Author: Matthias Pohl <[email protected]>
AuthorDate: Mon Jul 13 16:15:56 2026 +0200

    [FLINK-40086][runtime] Adds error handling to newly added 
preCompletionAction (#28700)
---
 .../java/org/apache/flink/runtime/executiongraph/Execution.java     | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 
a/flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/Execution.java
 
b/flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/Execution.java
index a704e3290fd..430cd9ee76d 100644
--- 
a/flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/Execution.java
+++ 
b/flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/Execution.java
@@ -1708,7 +1708,11 @@ public class Execution
                 initializingOrRunningFuture.complete(null);
             } else if (targetState.isTerminal()) {
                 if (preCompletionAction != null) {
-                    preCompletionAction.run();
+                    try {
+                        preCompletionAction.run();
+                    } catch (Exception e) {
+                        LOG.error("Error while executing pre-completion 
action.", e);
+                    }
                 }
                 // complete the terminal state future
                 terminalStateFuture.complete(targetState);

Reply via email to