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/09/22 14:37:07 UTC
(paimon) branch master updated: [core] Reduce unnecessary manifest reading during orphan clean (#4228)
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/paimon.git
The following commit(s) were added to refs/heads/master by this push:
new 34165de79 [core] Reduce unnecessary manifest reading during orphan clean (#4228)
34165de79 is described below
commit 34165de79a2d48ab5f5c4c6ea4ce1578c0f9e561
Author: bknbkn <67...@users.noreply.github.com>
AuthorDate: Sun Sep 22 22:37:03 2024 +0800
[core] Reduce unnecessary manifest reading during orphan clean (#4228)
---
.../main/java/org/apache/paimon/operation/LocalOrphanFilesClean.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/paimon-core/src/main/java/org/apache/paimon/operation/LocalOrphanFilesClean.java b/paimon-core/src/main/java/org/apache/paimon/operation/LocalOrphanFilesClean.java
index d68318e96..91b23b9a5 100644
--- a/paimon-core/src/main/java/org/apache/paimon/operation/LocalOrphanFilesClean.java
+++ b/paimon-core/src/main/java/org/apache/paimon/operation/LocalOrphanFilesClean.java
@@ -92,6 +92,9 @@ public class LocalOrphanFilesClean extends OrphanFilesClean {
// delete candidate files
Map<String, Path> candidates = getCandidateDeletingFiles();
+ if (candidates.isEmpty()) {
+ return deleteFiles;
+ }
// find used files
Set<String> usedFiles =