Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-368

Deadlock in BucketMonitor.startMonitor() on CountDownLatch when channel creation fails.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 1.2.2
    • 1.1.9, 1.2
    • Core
    • Security Level: Public
    • None

    Description

      Deadlock in BucketMonitor.startMonitor() on CountDownLatch when channel creation fails.

      Before deadlocking it also logs following exception (which by itself is another bug):

      java.lang.IllegalStateException: An Executor cannot be shut down from the thread acquired from itself. Please make sure you are not calling releaseExternalResources() from an I/O worker thread.
      at org.jboss.netty.util.internal.ExecutorUtil.terminate(ExecutorUtil.java:73)
      at org.jboss.netty.util.internal.ExecutorUtil.terminate(ExecutorUtil.java:49)
      at org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory.releaseExternalResources(NioClientSocketChannelFactory.java:180)
      at org.jboss.netty.bootstrap.Bootstrap.releaseExternalResources(Bootstrap.java:319)
      at com.couchbase.client.vbucket.BucketMonitor$1.operationComplete(BucketMonitor.java:193)
      at org.jboss.netty.channel.DefaultChannelFuture.notifyListener(DefaultChannelFuture.java:428)
      at org.jboss.netty.channel.DefaultChannelFuture.notifyListeners(DefaultChannelFuture.java:419)
      at org.jboss.netty.channel.DefaultChannelFuture.setFailure(DefaultChannelFuture.java:381)
      at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.processConnectTimeout(NioClientSocketPipelineSink.java:394)
      at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.run(NioClientSocketPipelineSink.java:289)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:724)

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              daschl Michael Nitschinger
              afds Deniss Afonin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty