Skip to content

Commit

Permalink
[core] Fix cache thread pool in FileDeletionThreadPool
Browse files Browse the repository at this point in the history
  • Loading branch information
JingsongLi committed Jul 17, 2024
1 parent ae77340 commit 767f9c1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import org.apache.paimon.fs.FileIO;

import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.SynchronousQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

Expand Down Expand Up @@ -49,7 +50,7 @@ private static ThreadPoolExecutor createCachedThreadPool(int threadNum) {
threadNum,
1,
TimeUnit.MINUTES,
new LinkedBlockingQueue<>(),
new SynchronousQueue<>(),
newDaemonThreadFactory("DELETE-FILE-THREAD-POOL"));
}
}

0 comments on commit 767f9c1

Please sign in to comment.