Mongo : java.util.concurrent.RejectedExecutionException

We are facing below exception. But we don’t see any failure of job due to this exception. Can someone help us to what is the root cause for this exception and how to resolve it.

java version : 11

Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@26f5ac3c[Not completed, task = java.util.concurrent.Executors$RunnableAdapter@67c8a607[Wrapped task = com.mongodb.internal.connection.DefaultConnectionPool$BackgroundMaintenanceManager$$Lambda$1001/0x0000000840bdf840@63f73e26]] rejected from java.util.concurrent.ScheduledThreadPoolExecutor@3543f851[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]

is your thread pool executor running at that time? it seems the executor rejected a task.

1 Like