Skip to content

Commit

Permalink
fix(s3stream): change reject handler to prevent task lost (#1956)
Browse files Browse the repository at this point in the history
Signed-off-by: Shichao Nie <niesc@automq.com>
  • Loading branch information
SCNieh authored Aug 28, 2024
1 parent c2977c9 commit 352bf01
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public static ThreadPoolExecutor createAndMonitor(int corePoolSize,
unit,
new LinkedBlockingQueue<>(queueCapacity),
threadFactory,
new ThreadPoolExecutor.DiscardOldestPolicy()) {
new ThreadPoolExecutor.CallerRunsPolicy()) {
@Override
protected void afterExecute(Runnable r, Throwable t) {
super.afterExecute(r, t);
Expand Down

0 comments on commit 352bf01

Please sign in to comment.