From 5f05554d14cb6af70e2bc36308f8cf1ca6aa32e2 Mon Sep 17 00:00:00 2001 From: zhourui999 <40812600+zhourui999@users.noreply.github.com> Date: Thu, 11 Apr 2024 11:49:50 +0800 Subject: [PATCH] [core] Fix warning log when cleaning up a null changelog manifest (#3197) --- .../main/java/org/apache/paimon/operation/FileDeletionBase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paimon-core/src/main/java/org/apache/paimon/operation/FileDeletionBase.java b/paimon-core/src/main/java/org/apache/paimon/operation/FileDeletionBase.java index ded5bedd0ae5..8bd422e53f00 100644 --- a/paimon-core/src/main/java/org/apache/paimon/operation/FileDeletionBase.java +++ b/paimon-core/src/main/java/org/apache/paimon/operation/FileDeletionBase.java @@ -197,7 +197,7 @@ public void cleanUnusedManifests( Snapshot snapshot, Set skippingSet, boolean deleteChangelog) { cleanUnusedManifestList(snapshot.baseManifestList(), skippingSet); cleanUnusedManifestList(snapshot.deltaManifestList(), skippingSet); - if (deleteChangelog) { + if (deleteChangelog && snapshot.changelogManifestList() != null) { cleanUnusedManifestList(snapshot.changelogManifestList(), skippingSet); } cleanUnusedIndexManifests(snapshot, skippingSet);