Skip to content

Commit

Permalink
Spark: Fix flaky time dependent test for remove orphan files (apache#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kbendick authored May 27, 2022
1 parent fc66a94 commit 35aa9fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public void orphanedFileRemovedWithParallelTasks() throws InterruptedException,

DeleteOrphanFiles.Result result = SparkActions.get().deleteOrphanFiles(table)
.executeDeleteWith(executorService)
.olderThan(System.currentTimeMillis())
.olderThan(System.currentTimeMillis() + 5000) // Ensure all orphan files are selected
.deleteWith(file -> {
deleteThreads.add(Thread.currentThread().getName());
deletedFiles.add(file);
Expand Down

0 comments on commit 35aa9fe

Please sign in to comment.