From b146fe426c3f931aa5ce5706f98ea70905b389bc Mon Sep 17 00:00:00 2001 From: xiaohongbo Date: Sat, 28 Feb 2026 15:15:48 +0800 Subject: [PATCH] try to fix CI to make empty dir older --- .../apache/paimon/operation/LocalOrphanFilesCleanTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paimon-core/src/test/java/org/apache/paimon/operation/LocalOrphanFilesCleanTest.java b/paimon-core/src/test/java/org/apache/paimon/operation/LocalOrphanFilesCleanTest.java index 5c582e22a6c5..bb20c9904e48 100644 --- a/paimon-core/src/test/java/org/apache/paimon/operation/LocalOrphanFilesCleanTest.java +++ b/paimon-core/src/test/java/org/apache/paimon/operation/LocalOrphanFilesCleanTest.java @@ -620,8 +620,8 @@ void testEmptyPartitionDirectories() throws Exception { Path recentEmptyPath = new Path(tablePath, "part1=2"); fileIO.mkdirs(recentEmptyPath); - LocalOrphanFilesClean cleanRecent = - new LocalOrphanFilesClean(table, System.currentTimeMillis() - 1, false); + long cutoffMs = System.currentTimeMillis() - TimeUnit.MINUTES.toMillis(2); + LocalOrphanFilesClean cleanRecent = new LocalOrphanFilesClean(table, cutoffMs, false); cleanRecent.clean(); assertThat(fileIO.exists(recentEmptyPath)) .as("Recent empty partition dir must not be deleted (age safeguard).")