You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@paimon.apache.org by lz...@apache.org on 2024/01/10 05:54:45 UTC

(incubator-paimon) branch master updated: [core] Don't delete file out of Snapshot expire (#2665)

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

lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-paimon.git


The following commit(s) were added to refs/heads/master by this push:
     new 375acf7d9 [core] Don't delete file out of Snapshot expire (#2665)
375acf7d9 is described below

commit 375acf7d98dcd2c44aae3ffdbbec9d0cc831acb7
Author: Jingsong Lee <ji...@gmail.com>
AuthorDate: Wed Jan 10 13:54:41 2024 +0800

    [core] Don't delete file out of Snapshot expire (#2665)
---
 .../src/main/java/org/apache/paimon/manifest/IndexManifestFile.java   | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/paimon-core/src/main/java/org/apache/paimon/manifest/IndexManifestFile.java b/paimon-core/src/main/java/org/apache/paimon/manifest/IndexManifestFile.java
index 8df6d67ec..235f8c509 100644
--- a/paimon-core/src/main/java/org/apache/paimon/manifest/IndexManifestFile.java
+++ b/paimon-core/src/main/java/org/apache/paimon/manifest/IndexManifestFile.java
@@ -66,10 +66,6 @@ public class IndexManifestFile extends ObjectsFile<IndexManifestEntry> {
             for (IndexManifestEntry file : entries) {
                 if (file.kind() == FileKind.ADD) {
                     indexEntries.put(file.identifier(), file);
-                    if (file.indexFile().rowCount() == 0) {
-                        indexEntries.remove(file.identifier());
-                        fileIO.deleteQuietly(pathFactory.toPath(file.indexFile().fileName()));
-                    }
                 } else {
                     indexEntries.remove(file.identifier());
                 }