java.util.concurrent.CancellationException

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.

  • User observed the following exception while closing a {{Cluster}} instance: {noformat} [main] ERROR com.datastax.driver.core.Cluster - Unexpected error while marking node UP: while this shouldn't happen, this shouldn't be critical java.util.concurrent.CancellationException: Task was cancelled. at com.google.common.util.concurrent.AbstractFuture.cancellationExceptionWithCause(AbstractFuture.java:399) at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:313) at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:293) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116) at com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:135) at com.google.common.util.concurrent.Futures$4.run(Futures.java:1138) at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:293) at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:150) at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:135) at com.google.common.util.concurrent.AbstractFuture.cancel(AbstractFuture.java:134) at com.google.common.util.concurrent.Futures$CombinedFuture.setOneValue(Futures.java:1545) at com.google.common.util.concurrent.Futures$CombinedFuture.access$400(Futures.java:1441) at com.google.common.util.concurrent.Futures$CombinedFuture$2.run(Futures.java:1514) at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:293) at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:150) at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:135) at com.google.common.util.concurrent.ListenableFutureTask.done(ListenableFutureTask.java:91) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:380) at java.util.concurrent.FutureTask.cancel(FutureTask.java:177) at com.datastax.driver.core.Cluster$Manager.shutdownNow(Cluster.java:1341) at com.datastax.driver.core.Cluster$Manager.close(Cluster.java:1308) at com.datastax.driver.core.Cluster$Manager.access$200(Cluster.java:1104) at com.datastax.driver.core.Cluster.closeAsync(Cluster.java:449) at com.datastax.driver.core.Cluster.close(Cluster.java:460) at com.datastax.loader.CqlDelimLoad.cleanup(CqlDelimLoad.java:236) at com.datastax.loader.CqlDelimLoad.run(CqlDelimLoad.java:316) at com.datastax.loader.CqlDelimLoad.main(CqlDelimLoad.java:323) {noformat} This error is not logged if an {{InterruptedException}} is encountered, we should also add logic such that if a {{CancellationException}} is thrown it is suppressed as well.
    via by Andy Tolbert,
  • User observed the following exception while closing a {{Cluster}} instance: {noformat} [main] ERROR com.datastax.driver.core.Cluster - Unexpected error while marking node UP: while this shouldn't happen, this shouldn't be critical java.util.concurrent.CancellationException: Task was cancelled. at com.google.common.util.concurrent.AbstractFuture.cancellationExceptionWithCause(AbstractFuture.java:399) at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:313) at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:293) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116) at com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:135) at com.google.common.util.concurrent.Futures$4.run(Futures.java:1138) at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:293) at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:150) at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:135) at com.google.common.util.concurrent.AbstractFuture.cancel(AbstractFuture.java:134) at com.google.common.util.concurrent.Futures$CombinedFuture.setOneValue(Futures.java:1545) at com.google.common.util.concurrent.Futures$CombinedFuture.access$400(Futures.java:1441) at com.google.common.util.concurrent.Futures$CombinedFuture$2.run(Futures.java:1514) at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:293) at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:150) at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:135) at com.google.common.util.concurrent.ListenableFutureTask.done(ListenableFutureTask.java:91) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:380) at java.util.concurrent.FutureTask.cancel(FutureTask.java:177) at com.datastax.driver.core.Cluster$Manager.shutdownNow(Cluster.java:1341) at com.datastax.driver.core.Cluster$Manager.close(Cluster.java:1308) at com.datastax.driver.core.Cluster$Manager.access$200(Cluster.java:1104) at com.datastax.driver.core.Cluster.closeAsync(Cluster.java:449) at com.datastax.driver.core.Cluster.close(Cluster.java:460) at com.datastax.loader.CqlDelimLoad.cleanup(CqlDelimLoad.java:236) at com.datastax.loader.CqlDelimLoad.run(CqlDelimLoad.java:316) at com.datastax.loader.CqlDelimLoad.main(CqlDelimLoad.java:323) {noformat} This error is not logged if an {{InterruptedException}} is encountered, we should also add logic such that if a {{CancellationException}} is thrown it is suppressed as well.
    via by Andy Tolbert,
  • GitHub comment 1417#152984083
    via GitHub by rumca
    ,
  • EntityMemcache error in objecitfy
    via Stack Overflow by My Talk
    ,
  • EntityMemcache error in objecitfy
    via by My Talk via StackOverflow,
    • java.util.concurrent.CancellationException: Task was cancelled. at com.google.common.util.concurrent.AbstractFuture.cancellationExceptionWithCause(AbstractFuture.java:399) at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:313) at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:293) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116) at com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:135) at com.google.common.util.concurrent.Futures$4.run(Futures.java:1138) at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:293) at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:150) at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:135) at com.google.common.util.concurrent.AbstractFuture.cancel(AbstractFuture.java:134) at com.google.common.util.concurrent.Futures$CombinedFuture.setOneValue(Futures.java:1545) at com.google.common.util.concurrent.Futures$CombinedFuture.access$400(Futures.java:1441) at com.google.common.util.concurrent.Futures$CombinedFuture$2.run(Futures.java:1514) at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:293) at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:150) at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:135) at com.google.common.util.concurrent.ListenableFutureTask.done(ListenableFutureTask.java:91) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:380) at java.util.concurrent.FutureTask.cancel(FutureTask.java:177) at com.datastax.driver.core.Cluster$Manager.shutdownNow(Cluster.java:1341) at com.datastax.driver.core.Cluster$Manager.close(Cluster.java:1308) at com.datastax.driver.core.Cluster$Manager.access$200(Cluster.java:1104) at com.datastax.driver.core.Cluster.closeAsync(Cluster.java:449) at com.datastax.driver.core.Cluster.close(Cluster.java:460) at com.datastax.loader.CqlDelimLoad.cleanup(CqlDelimLoad.java:236) at com.datastax.loader.CqlDelimLoad.run(CqlDelimLoad.java:316) at com.datastax.loader.CqlDelimLoad.main(CqlDelimLoad.java:323)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,