Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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).")
Expand Down
Loading