You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by za...@apache.org on 2024/10/18 09:12:35 UTC
(flink) branch release-1.18 updated: [FLINK-36421][fs][checkpoint] Sync outputStream before returning handle in FsCheckpointStreamFactory (#25479)
This is an automated email from the ASF dual-hosted git repository.
zakelly pushed a commit to branch release-1.18
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.18 by this push:
new cabc6f4ffcb [FLINK-36421][fs][checkpoint] Sync outputStream before returning handle in FsCheckpointStreamFactory (#25479)
cabc6f4ffcb is described below
commit cabc6f4ffcb214c3b34c11daadf692e01d1c64f4
Author: Marc Aurel Fritz <Ma...@pm.me>
AuthorDate: Fri Oct 18 11:12:26 2024 +0200
[FLINK-36421][fs][checkpoint] Sync outputStream before returning handle in FsCheckpointStreamFactory (#25479)
Make sure the returned handle points to a file that is safely
persisted to disk.
Signed-off-by: Marc Aurel Fritz <ma...@pm.me>
---
.../apache/flink/runtime/state/filesystem/FsCheckpointStreamFactory.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/state/filesystem/FsCheckpointStreamFactory.java b/flink-runtime/src/main/java/org/apache/flink/runtime/state/filesystem/FsCheckpointStreamFactory.java
index dd687b95c88..7375874b69a 100644
--- a/flink-runtime/src/main/java/org/apache/flink/runtime/state/filesystem/FsCheckpointStreamFactory.java
+++ b/flink-runtime/src/main/java/org/apache/flink/runtime/state/filesystem/FsCheckpointStreamFactory.java
@@ -401,6 +401,7 @@ public class FsCheckpointStreamFactory implements CheckpointStreamFactory {
} catch (Exception ignored) {
}
+ sync();
outStream.close();
return allowRelativePaths