Skip to content

Commit

Permalink
[FLINK-36421][fs][checkpoint] Sync outputStream before returning hand…
Browse files Browse the repository at this point in the history
…le in FsCheckpointStreamFactory (#25481)

Make sure the returned handle points to a file that is safely
persisted to disk.

Signed-off-by: Marc Aurel Fritz <[email protected]>
  • Loading branch information
Planet-X authored Oct 18, 2024
1 parent 5de5b27 commit 6a51962
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ public StreamStateHandle closeAndGetHandle() throws IOException {
} catch (Exception ignored) {
}

sync();
outStream.close();

return allowRelativePaths
Expand Down

0 comments on commit 6a51962

Please sign in to comment.