java.util.concurrent.RejectedExecutionException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • java.util.concurrent.RejectedExecutionException:
    via by Unknown author,
  • Hello, We got an issue when preparing statements under high activity. When number of threads limit is reached on the server, SessionManager.toPreparedStatement() hangs with RejectedExecutionException in Futures.transform() method. Here is the callstack with driver v2.0.8: {code} java.util.concurrent.RejectedExecutionException: Task com.google.common.util.concurrent.Futures$ChainingListenableFuture@1a779c1 rejected from java.util.concurrent.ThreadPoolExecutor@a27a60[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 6] at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2013) at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:816) at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1337) at com.google.common.util.concurrent.MoreExecutors$ListeningDecorator.execute(MoreExecutors.java:484) at com.google.common.util.concurrent.ExecutionList.executeListener(ExecutionList.java:156) at com.google.common.util.concurrent.ExecutionList.add(ExecutionList.java:101) at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:170) at com.google.common.util.concurrent.Futures.transform(Futures.java:606) at com.google.common.util.concurrent.Futures.transform(Futures.java:715) at com.datastax.driver.core.SessionManager.toPreparedStatement(SessionManager.java:159) at com.datastax.driver.core.SessionManager.prepareAsync(SessionManager.java:124) at com.datastax.driver.core.AbstractSession.prepare(AbstractSession.java:77) at com.bnpparibas.eqd.atlas.core.CassandraDatabase.prepare(CassandraDatabase.java:178) at com.bnpparibas.eqd.atlas.core.persistence.GenericDao.buildUpdateQuery(GenericDao.java:117) at com.bnpparibas.eqd.atlas.storage.titan.persistence.pdlidentity.PdlIdentityDao.createQueries(PdlIdentityDao.java:42) at com.bnpparibas.eqd.atlas.core.CassandraDatabase.registerDao(CassandraDatabase.java:94) at com.bnpparibas.eqd.atlas.core.persistence.GenericDao.<init>(GenericDao.java:38) {code} I've found an interesting article on the issue: http://www.concurrentaffair.org/2012/10/27/problems-with-rejectedexecutionhandler-and-futures/ Could you please investigate? Thanks in advance for your help. Minh
    via by Ngoc Minh,
  • Hello, We got an issue when preparing statements under high activity. When number of threads limit is reached on the server, SessionManager.toPreparedStatement() hangs with RejectedExecutionException in Futures.transform() method. Here is the callstack with driver v2.0.8: {code} java.util.concurrent.RejectedExecutionException: Task com.google.common.util.concurrent.Futures$ChainingListenableFuture@1a779c1 rejected from java.util.concurrent.ThreadPoolExecutor@a27a60[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 6] at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2013) at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:816) at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1337) at com.google.common.util.concurrent.MoreExecutors$ListeningDecorator.execute(MoreExecutors.java:484) at com.google.common.util.concurrent.ExecutionList.executeListener(ExecutionList.java:156) at com.google.common.util.concurrent.ExecutionList.add(ExecutionList.java:101) at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:170) at com.google.common.util.concurrent.Futures.transform(Futures.java:606) at com.google.common.util.concurrent.Futures.transform(Futures.java:715) at com.datastax.driver.core.SessionManager.toPreparedStatement(SessionManager.java:159) at com.datastax.driver.core.SessionManager.prepareAsync(SessionManager.java:124) at com.datastax.driver.core.AbstractSession.prepare(AbstractSession.java:77) at com.bnpparibas.eqd.atlas.core.CassandraDatabase.prepare(CassandraDatabase.java:178) at com.bnpparibas.eqd.atlas.core.persistence.GenericDao.buildUpdateQuery(GenericDao.java:117) at com.bnpparibas.eqd.atlas.storage.titan.persistence.pdlidentity.PdlIdentityDao.createQueries(PdlIdentityDao.java:42) at com.bnpparibas.eqd.atlas.core.CassandraDatabase.registerDao(CassandraDatabase.java:94) at com.bnpparibas.eqd.atlas.core.persistence.GenericDao.<init>(GenericDao.java:38) {code} I've found an interesting article on the issue: http://www.concurrentaffair.org/2012/10/27/problems-with-rejectedexecutionhandler-and-futures/ Could you please investigate? Thanks in advance for your help. Minh
    via by Ngoc Minh,
  • Stats crash
    via GitHub by roundhill
    ,
    • java.util.concurrent.RejectedExecutionException: Task scala.concurrent.impl.CallbackRunnable@f1bb79c rejected from java.util.concurrent.ThreadPoolExecutor@64b36a83[Shutting down, pool size = 2, active threads = 2, queued tasks = 0, completed tasks = 0] at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2013) at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:816) at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1337) at scala.concurrent.impl.ExecutionContextImpl$$anon$1.execute(ExecutionContextImpl.scala:118) at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:37) at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:133) at scala.concurrent.Promise$class.complete(Promise.scala:55) at scala.concurrent.impl.Promise$DefaultPromise.complete(Promise.scala:58) at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:23) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722)

    Users with the same issue

    Unknown visitor1 times, last one,
    rp
    1 times, last one,
    Reich
    3 times, last one,
    bandoca
    3 times, last one,
    johnxfly
    22 times, last one,
    92 more bugmates