This is an automated email from the ASF dual-hosted git repository.
jerryjing 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 8b61fcb5ce [core] skip validate main branch before orphan files
cleaning (#6524)
8b61fcb5ce is described below
commit 8b61fcb5ce89e409cf968c9cbd5acd094b4fa94a
Author: XiaoHongbo <[email protected]>
AuthorDate: Tue Nov 4 16:47:55 2025 +0800
[core] skip validate main branch before orphan files cleaning (#6524)
Co-authored-by: xiaohongbo <[email protected]>
---
.../src/main/java/org/apache/paimon/operation/OrphanFilesClean.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/paimon-core/src/main/java/org/apache/paimon/operation/OrphanFilesClean.java
b/paimon-core/src/main/java/org/apache/paimon/operation/OrphanFilesClean.java
index 1af56a8f62..bb08d90a42 100644
---
a/paimon-core/src/main/java/org/apache/paimon/operation/OrphanFilesClean.java
+++
b/paimon-core/src/main/java/org/apache/paimon/operation/OrphanFilesClean.java
@@ -108,7 +108,6 @@ public abstract class OrphanFilesClean implements
Serializable {
protected List<String> validBranches() {
List<String> branches = table.branchManager().branches();
- branches.add(DEFAULT_MAIN_BRANCH);
List<String> abnormalBranches = new ArrayList<>();
for (String branch : branches) {
@@ -124,6 +123,7 @@ public abstract class OrphanFilesClean implements
Serializable {
+ "Please check these branches manually.",
abnormalBranches));
}
+ branches.add(DEFAULT_MAIN_BRANCH);
return branches;
}