Exception on application shutdown

java

#1

Hi,

Getting this exception on application shutdown (attached as zip file due to length restriction)

Spring Boot + Vertx application
Couchbase Java SDK version: 2.6.1

03:32:21.560 [cb-io-1-2] WARN c.c.c.d.i.n.channel.AbstractChannel - Force-closing a channel whose registration task was not accepted by an event loop: [id: 0xd7fabdb5]
java.util.concurrent.RejectedExecutionException: event executor terminated
at com.couchbase.client.deps.io.netty.util.concurrent.SingleThreadEventExecutor.reject(SingleThreadEventExecutor.java:796)
at com.couchbase.client.deps.io.netty.util.concurrent.SingleThreadEventExecutor.offerTask(SingleThreadEventExecutor.java:336)
at com.couchbase.client.deps.io.netty.util.concurrent.SingleThreadEventExecutor.addTask(SingleThreadEventExecutor.java:329)
at com.couchbase.client.deps.io.netty.util.concurrent.SingleThreadEventExecutor.execute(SingleThreadEventExecutor.java:739)
at com.couchbase.client.deps.io.netty.channel.AbstractChannel$AbstractUnsafe.register(AbstractChannel.java:425)
at com.couchbase.client.deps.io.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop.java:72)
at com.couchbase.client.deps.io.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop.java:60)
at com.couchbase.client.deps.io.netty.channel.MultithreadEventLoopGroup.register(MultithreadEventLoopGroup.java:65)
at com.couchbase.client.deps.io.netty.bootstrap.AbstractBootstrap.initAndRegister(AbstractBootstrap.java:323)
at com.couchbase.client.deps.io.netty.bootstrap.Bootstrap.doConnect(Bootstrap.java:134)
at com.couchbase.client.deps.io.netty.bootstrap.Bootstrap.connect(Bootstrap.java:90)
at com.couchbase.client.core.endpoint.BootstrapAdapter.connect(BootstrapAdapter.java:50)
at com.couchbase.client.core.endpoint.AbstractEndpoint$4.call(AbstractEndpoint.java:354)
at com.couchbase.client.core.endpoint.AbstractEndpoint$4.call(AbstractEndpoint.java:351)
at rx.internal.operators.SingleTimeout.call(SingleTimeout.java:58)
at rx.internal.operators.SingleTimeout.call(SingleTimeout.java:26)
at rx.Single.subscribe(Single.java:1979)
at rx.internal.operators.SingleOperatorOnErrorResumeNext.call(SingleOperatorOnErrorResumeNext.java:77)
at rx.internal.operators.SingleOperatorOnErrorResumeNext.call(SingleOperatorOnErrorResumeNext.java:23)
at rx.Single.subscribe(Single.java:1979)
at com.couchbase.client.core.endpoint.AbstractEndpoint.doConnect(AbstractEndpoint.java:393)
at com.couchbase.client.core.endpoint.AbstractEndpoint.connect(AbstractEndpoint.java:338)
at com.couchbase.client.core.endpoint.AbstractEndpoint.notifyChannelInactive(AbstractEndpoint.java:611)
at com.couchbase.client.core.endpoint.AbstractGenericHandler.channelInactive(AbstractGenericHandler.java:560)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:240)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:226)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:219)
at com.couchbase.client.deps.io.netty.channel.ChannelInboundHandlerAdapter.channelInactive(ChannelInboundHandlerAdapter.java:75)
at com.couchbase.client.deps.io.netty.handler.codec.memcache.AbstractMemcacheObjectAggregator.channelInactive(AbstractMemcacheObjectAggregator.java:110)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:240)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:226)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:219)
at com.couchbase.client.deps.io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelInactive(CombinedChannelDuplexHandler.java:420)
at com.couchbase.client.deps.io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:379)
at com.couchbase.client.deps.io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:344)
at com.couchbase.client.deps.io.netty.handler.codec.memcache.binary.AbstractBinaryMemcacheDecoder.channelInactive(AbstractBinaryMemcacheDecoder.java:226)
at com.couchbase.client.deps.io.netty.handler.codec.memcache.binary.BinaryMemcacheClientCodec$Decoder.channelInactive(BinaryMemcacheClientCodec.java:107)
at com.couchbase.client.deps.io.netty.channel.CombinedChannelDuplexHandler.channelInactive(CombinedChannelDuplexHandler.java:223)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:240)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:226)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:219)
at com.couchbase.client.deps.io.netty.channel.ChannelInboundHandlerAdapter.channelInactive(ChannelInboundHandlerAdapter.java:75)
at com.couchbase.client.deps.io.netty.handler.timeout.IdleStateHandler.channelInactive(IdleStateHandler.java:277)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:240)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:226)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:219)
at com.couchbase.client.deps.io.netty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1299)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:240)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:226)
at com.couchbase.client.deps.io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:903)
at com.couchbase.client.deps.io.netty.channel.AbstractChannel$AbstractUnsafe$8.run(AbstractChannel.java:768)
at com.couchbase.client.deps.io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:367)
at com.couchbase.client.deps.io.netty.util.concurrent.SingleThreadEventExecutor.confirmShutdown(SingleThreadEventExecutor.java:671)
at com.couchbase.client.deps.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:474)
at com.couchbase.client.deps.io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:131)
at com.couchbase.client.deps.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:745)
03:32:21.562 [cb-io-1-2] ERROR c.c.c.d.i.n.u.c.D.rejectedExecution - Failed to submit a listener notification task. Event loop shut down?
java.util.concurrent.RejectedExecutionException: event executor terminated
at com.couchbase.client.deps.io.netty.util.concurrent.SingleThreadEventExecutor.reject(SingleThreadEventExecutor.java:796)
at com.couchbase.client.deps.io.netty.util.concurrent.SingleThreadEventExecutor.offerTask(SingleThreadEventExecutor.java:336)
at com.couchbase.client.deps.io.netty.util.concurrent.SingleThreadEventExecutor.addTask(SingleThreadEventExecutor.java:329)
at com.couchbase.client.deps.io.netty.util.concurrent.SingleThreadEventExecutor.execute(SingleThreadEventExecutor.java:739)
at com.couchbase.client.deps.io.netty.util.concurrent.DefaultPromise.safeExecute(DefaultPromise.java:765)
at com.couchbase.client.deps.io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:433)
at com.couchbase.client.deps.io.netty.util.concurrent.DefaultPromise.trySuccess(DefaultPromise.java:104)
at com.couchbase.client.deps.io.netty.channel.DefaultChannelPromise.trySuccess(DefaultChannelPromise.java:84)
at com.couchbase.client.deps.io.netty.channel.AbstractChannel$CloseFuture.setClosed(AbstractChannel.java:1093)
at com.couchbase.client.deps.io.netty.channel.AbstractChannel$AbstractUnsafe.register(AbstractChannel.java:436)
at com.couchbase.client.deps.io.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop.java:72)
at com.couchbase.client.deps.io.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop.java:60)
at com.couchbase.client.deps.io.netty.channel.MultithreadEventLoopGroup.register(MultithreadEventLoopGroup.java:65)
at com.couchbase.client.deps.io.netty.bootstrap.AbstractBootstrap.initAndRegister(AbstractBootstrap.java:323)
at com.couchbase.client.deps.io.netty.bootstrap.Bootstrap.doConnect(Bootstrap.java:134)
at com.couchbase.client.deps.io.netty.bootstrap.Bootstrap.connect(Bootstrap.java:90)
at com.couchbase.client.core.endpoint.BootstrapAdapter.connect(BootstrapAdapter.java:50)
at com.couchbase.client.core.endpoint.AbstractEndpoint$4.call(AbstractEndpoint.java:354)
at com.couchbase.client.core.endpoint.AbstractEndpoint$4.call(AbstractEndpoint.java:351)
at rx.internal.operators.SingleTimeout.call(SingleTimeout.java:58)
at rx.internal.operators.SingleTimeout.call(SingleTimeout.java:26)
at rx.Single.subscribe(Single.java:1979)
at rx.internal.operators.SingleOperatorOnErrorResumeNext.call(SingleOperatorOnErrorResumeNext.java:77)
at rx.internal.operators.SingleOperatorOnErrorResumeNext.call(SingleOperatorOnErrorResumeNext.java:23)
at rx.Single.subscribe(Single.java:1979)
at com.couchbase.client.core.endpoint.AbstractEndpoint.doConnect(AbstractEndpoint.java:393)
at com.couchbase.client.core.endpoint.AbstractEndpoint.connect(AbstractEndpoint.java:338)
at com.couchbase.client.core.endpoint.AbstractEndpoint.notifyChannelInactive(AbstractEndpoint.java:611)
at com.couchbase.client.core.endpoint.AbstractGenericHandler.channelInactive(AbstractGenericHandler.java:560)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:240)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:226)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:219)
at com.couchbase.client.deps.io.netty.channel.ChannelInboundHandlerAdapter.channelInactive(ChannelInboundHandlerAdapter.java:75)
at com.couchbase.client.deps.io.netty.handler.codec.memcache.AbstractMemcacheObjectAggregator.channelInactive(AbstractMemcacheObjectAggregator.java:110)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:240)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:226)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:219)
at com.couchbase.client.deps.io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelInactive(CombinedChannelDuplexHandler.java:420)
at com.couchbase.client.deps.io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:379)
at com.couchbase.client.deps.io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:344)
at com.couchbase.client.deps.io.netty.handler.codec.memcache.binary.AbstractBinaryMemcacheDecoder.channelInactive(AbstractBinaryMemcacheDecoder.java:226)
at com.couchbase.client.deps.io.netty.handler.codec.memcache.binary.BinaryMemcacheClientCodec$Decoder.channelInactive(BinaryMemcacheClientCodec.java:107)
at com.couchbase.client.deps.io.netty.channel.CombinedChannelDuplexHandler.channelInactive(CombinedChannelDuplexHandler.java:223)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:240)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:226)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:219)
at com.couchbase.client.deps.io.netty.channel.ChannelInboundHandlerAdapter.channelInactive(ChannelInboundHandlerAdapter.java:75)
at com.couchbase.client.deps.io.netty.handler.timeout.IdleStateHandler.channelInactive(IdleStateHandler.java:277)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:240)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:226)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:219)
at com.couchbase.client.deps.io.netty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1299)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:240)
at com.couchbase.client.deps.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:226)
at com.couchbase.client.deps.io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:903)
at com.couchbase.client.deps.io.netty.channel.AbstractChannel$AbstractUnsafe$8.run(AbstractChannel.java:768)
at com.couchbase.client.deps.io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:367)
at com.couchbase.client.deps.io.netty.util.concurrent.SingleThreadEventExecutor.confirmShutdown(SingleThreadEventExecutor.java:671)
at com.couchbase.client.deps.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:474)
at com.couchbase.client.deps.io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:131)
at com.couchbase.client.deps.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:745)

couchbaseException.zip (3.9 KB)


#2

How are you shutting down the SDK before stopping the application?