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/10 02:25:23 UTC

(flink) branch master updated: [FLINK-36421][fs][checkpoint] Sync outputStream before returning handle in FsCheckpointStreamFactory (#25468)

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

zakelly pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/master by this push:
     new dfb9bfeabac [FLINK-36421][fs][checkpoint] Sync outputStream before returning handle in FsCheckpointStreamFactory (#25468)
dfb9bfeabac is described below

commit dfb9bfeabac8d3ac289e46a3017ed68c50ba3777
Author: Marc Aurel Fritz <Ma...@pm.me>
AuthorDate: Thu Oct 10 04:25:16 2024 +0200

    [FLINK-36421][fs][checkpoint] Sync outputStream before returning handle in FsCheckpointStreamFactory (#25468)
    
    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 07d872766ed..db9638eb6bc 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
@@ -405,6 +405,7 @@ public class FsCheckpointStreamFactory implements CheckpointStreamFactory {
                         } catch (Exception ignored) {
                         }
 
+                        sync();
                         outStream.close();
 
                         return allowRelativePaths