I have some code that is using the couchbase java client (version 2.0.2) that is periodically making view queries (every 5 minutes) against a cluster of 3 nodes. So within an hour, it will make 12 total queries. Of those 12, I’d say it fails about a quarter of the time with the following error:
com.couchbase.client.core.RequestCancelledException: Request cancelled in-flight.
at com.couchbase.client.core.endpoint.AbstractGenericHandler.handleOutstandingOperations(AbstractGenericHandler.java:241)
at com.couchbase.client.core.endpoint.AbstractGenericHandler.handlerRemoved(AbstractGenericHandler.java:223)
at com.couchbase.client.core.endpoint.view.ViewHandler.handlerRemoved(ViewHandler.java:456)
at com.couchbase.client.deps.io.netty.channel.DefaultChannelPipeline.callHandlerRemoved0(DefaultChannelPipeline.java:526)
at com.couchbase.client.deps.io.netty.channel.DefaultChannelPipeline.callHandlerRemoved(DefaultChannelPipeline.java:520)
at com.couchbase.client.deps.io.netty.channel.DefaultChannelPipeline.remove0(DefaultChannelPipeline.java:350)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.teardown0(AbstractChannelHandlerContext.java:104)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.teardown(AbstractChannelHandlerContext.java:89)
at com.couchbase.client.deps.io.netty.channel.DefaultChannelPipeline.teardownAll(DefaultChannelPipeline.java:753)
at com.couchbase.client.deps.io.netty.channel.DefaultChannelPipeline.fireChannelUnregistered(DefaultChannelPipeline.java:742)
at com.couchbase.client.deps.io.netty.channel.AbstractChannel$AbstractUnsafe$6.run(AbstractChannel.java:606)
at com.couchbase.client.deps.io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:380)
at com.couchbase.client.deps.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)
at com.couchbase.client.deps.io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
at com.couchbase.client.deps.io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
at java.lang.Thread.run(Thread.java:745)
None of my nodes are currently down nor have any of them been down when these exceptions have happened. I do use a timeout
on the Observable
from the view query with a value of 10 seconds but I don’t think that’s the issue. Any thoughts on what’s causing this?