This is an automated email from the ASF dual-hosted git repository.
davidradl pushed a commit to branch release-1.20
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.20 by this push:
new 479ff432e42 [FLINK-40086][runtime] Adds error handling to newly added
preCompletionAction (#28702)
479ff432e42 is described below
commit 479ff432e42a33264fabd6bccae7cadbef46d982
Author: Matthias Pohl <[email protected]>
AuthorDate: Mon Jul 13 16:19:41 2026 +0200
[FLINK-40086][runtime] Adds error handling to newly added
preCompletionAction (#28702)
---
.../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 872732db36d..9f9077d2668 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
@@ -1537,7 +1537,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);