You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by pn...@apache.org on 2021/06/09 13:21:33 UTC
[flink] 01/03: [hotfix][task] Rename triggerCheckpoint to better
reflect a difference compared to other similarly named methods
This is an automated email from the ASF dual-hosted git repository.
pnowojski pushed a commit to branch release-1.13
in repository https://gitbox.apache.org/repos/asf/flink.git
commit 9bf3318d492517f5f8a739610050a24c26179a3b
Author: Piotr Nowojski <pi...@gmail.com>
AuthorDate: Wed Jun 2 08:56:10 2021 +0200
[hotfix][task] Rename triggerCheckpoint to better reflect a difference compared to other similarly named methods
---
.../java/org/apache/flink/streaming/runtime/tasks/StreamTask.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamTask.java b/flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamTask.java
index 9998743..e8fde38 100644
--- a/flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamTask.java
+++ b/flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamTask.java
@@ -957,7 +957,9 @@ public abstract class StreamTask<OUT, OP extends StreamOperator<OUT>> extends Ab
System.currentTimeMillis()
- checkpointMetaData.getTimestamp());
try {
- result.complete(triggerCheckpoint(checkpointMetaData, checkpointOptions));
+ result.complete(
+ triggerCheckpointAsyncInMailbox(
+ checkpointMetaData, checkpointOptions));
} catch (Exception ex) {
// Report the failure both via the Future result but also to the mailbox
result.completeExceptionally(ex);
@@ -970,7 +972,7 @@ public abstract class StreamTask<OUT, OP extends StreamOperator<OUT>> extends Ab
return result;
}
- private boolean triggerCheckpoint(
+ private boolean triggerCheckpointAsyncInMailbox(
CheckpointMetaData checkpointMetaData, CheckpointOptions checkpointOptions)
throws Exception {
FlinkSecurityManager.monitorUserSystemExitForCurrentThread();