Couchbase 4.5
AWS Server
Java 1.8 application
After restarting couchbase (for maintenance) request starting failing when trying to save new docs to the database with the exception below. I’m using the default retry strategy of BestEffortRetryStrategy. From what I’ve been able to piece together it looks like observable request (which I’m using) are handled differently than non-observables maybe this explains why the reattempts are not happening but still doesn’t explain why the request are failing to begin with. I thought maybe the failure is happening because the reconnect didn’t happen properly but I don’t think thats the case because I would assume my request would result in a TimeoutException instead.
Once I restarted my application then all things begin to play well with each other.
What I’m trying to determine is if an application restart is always needed after a couchbase restart. What is the connection pool mechanism I can use to get around a manual application restart. (Seems reconnect is out of the box and nothing is needed but I’m not sure I’m reading this right.)
com.couchbase.client.core.RequestCancelledException: Could not dispatch request, cancelling instead of retrying.
at com.couchbase.client.core.retry.RetryHelper.retryOrCancel(RetryHelper.java:51)
at com.couchbase.client.core.service.AbstractPoolingService.dispatch(AbstractPoolingService.java:60)
at com.couchbase.client.core.service.AbstractDynamicService.send(AbstractDynamicService.java:129)
at com.couchbase.client.core.node.CouchbaseNode.send(CouchbaseNode.java:170)
at com.couchbase.client.core.RequestHandler.onEvent(RequestHandler.java:202)
at com.couchbase.client.core.RequestHandler.onEvent(RequestHandler.java:74)
at com.couchbase.client.deps.com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:128)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at com.couchbase.client.deps.io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
at java.lang.Thread.run(Thread.java:745)