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

Client constructor blocks or deadlocks

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • 1.0.2
    • Core
    • Security Level: Public
    • None
    • OS: Windows 7 64bit
      JDK: 1.6.0_31 also 1.6.0_33 64 bit
      Couchbase enterprise edition running on 3 nodes all Ubuntu 10.04 64bit server (VMware images)

    Description

      I am evaluating the couchbase product and hit a brick wall immediately when running through the simple hello world example.

      I have a 3 node cluster running couchbase enterprise 1.8.2 on ubuntu 10.04 64 bit VMware images. All three are running in VMWare player instances on Windows 7 64bit.

      When I try to run the Main example on Windows 7 using Java6 (64 bit) the code blocks somewhere in the Client constructor. The result is the logging below.

      2012-06-14 14:07:46.313 INFO com.couchbase.client.CouchbaseConnection: Added

      {QA sa=/192.168.186.150:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}

      to connect queue
      2012-06-14 14:07:46.316 INFO com.couchbase.client.CouchbaseConnection: Added

      {QA sa=/192.168.186.151:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}

      to connect queue
      2012-06-14 14:07:46.319 INFO com.couchbase.client.CouchbaseConnection: Added

      {QA sa=/192.168.186.152:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}

      to connect queue
      2012-06-14 14:07:59.843 INFO com.couchbase.client.CouchbaseConnection: Connection state changed for sun.nio.ch.SelectionKeyImpl@24a4e2e3
      2012-06-14 14:08:52.983 INFO com.couchbase.client.CouchbaseConnection: Connection state changed for sun.nio.ch.SelectionKeyImpl@21ec6696
      2012-06-14 14:08:52.987 INFO com.couchbase.client.CouchbaseConnection: Connection state changed for sun.nio.ch.SelectionKeyImpl@27431340

      I have also tried debugging but the code blocks in the constructor at

      client = new CouchbaseClient(uris, "default", "");

      The program never completes.

      This works fine in a Linux environment with the following output received

      2012-06-14 04:58:50.693 INFO com.couchbase.client.CouchbaseConnection: Added

      {QA sa=/192.168.186.150:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}

      to connect queue
      2012-06-14 04:58:50.703 INFO com.couchbase.client.CouchbaseConnection: Added

      {QA sa=/192.168.186.151:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}

      to connect queue
      2012-06-14 04:58:50.708 INFO com.couchbase.client.CouchbaseConnection: Added

      {QA sa=/192.168.186.152:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}

      to connect queue
      2012-06-14 04:58:50.830 INFO com.couchbase.client.CouchbaseConnection: Connection state changed for sun.nio.ch.SelectionKeyImpl@1bc74f37
      2012-06-14 04:58:50.834 INFO com.couchbase.client.CouchbaseConnection: Connection state changed for sun.nio.ch.SelectionKeyImpl@3a21b220
      2012-06-14 04:58:50.843 INFO com.couchbase.client.CouchbaseConnection: Connection state changed for sun.nio.ch.SelectionKeyImpl@732b3d53
      2012-06-14 04:58:51.135 INFO com.couchbase.client.CouchbaseConnection: Shut down Couchbase client
      Set Succeeded
      Synchronous Get failed
      Asynchronous Get Succeeded: Hello World!

      Is there a JDK for windows 7 or a configuration setting that can be used to prevent this?

      Attachments

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

        Activity

          People

            daschl Michael Nitschinger
            mscott Martin Scott
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty