Skip to content

Commit

Permalink
[FLINK-35446][checkpoint] Fix NPE when disabling file merging but res…
Browse files Browse the repository at this point in the history
…toring from merged files

This fixes apache#24840
  • Loading branch information
Zakelly committed May 26, 2024
1 parent 5b535e1 commit 096b4a6
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -684,10 +684,11 @@ public void restoreStateHandles(
fileHandle.getFilePath(),
path -> {
boolean managedByFileMergingManager =
isManagedByFileMergingManager(
path,
subtaskKey,
fileHandle.getScope());
fileSystemInitiated
&& isManagedByFileMergingManager(
path,
subtaskKey,
fileHandle.getScope());
if (managedByFileMergingManager) {
spaceStat.onPhysicalFileCreate();
}
Expand Down

0 comments on commit 096b4a6

Please sign in to comment.