Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.0.2
    • Fix Version/s: .backlog1.x
    • Component/s: Core
    • Security Level: Public
    • Labels:
      None
    • Environment:
      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?

      1. log.txt
        6 kB
        Martin Scott
      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        daschl Michael Nitschinger added a comment -

        We haven't seen this again in a long time.. also we fixed issues along the way and have more in the 1.3 upcoming..

        for anyone stumbling upon this when running 1.2* or 1.3*, please reopen a new issue with more context.. thanks!

        Show
        daschl Michael Nitschinger added a comment - We haven't seen this again in a long time.. also we fixed issues along the way and have more in the 1.3 upcoming.. for anyone stumbling upon this when running 1.2* or 1.3*, please reopen a new issue with more context.. thanks!
        Hide
        daschl Michael Nitschinger added a comment -

        getting it onto the bugfix release train, altough I'm not sure if we get it into 1.1.7

        Show
        daschl Michael Nitschinger added a comment - getting it onto the bugfix release train, altough I'm not sure if we get it into 1.1.7
        Hide
        tgrall Tug Grall (Inactive) added a comment -

        I am reopening the issue as we see this error again on some environment:

        Let me know if you prefer me to create a new issue for 1.1.x

        Show
        tgrall Tug Grall (Inactive) added a comment - I am reopening the issue as we see this error again on some environment: Yuval http://www.couchbase.com/issues/browse/JCBC-65 ... Let me know if you prefer me to create a new issue for 1.1.x
        Hide
        seand88 sean diamond added a comment -

        I am having this exact same problem. Using windows 7 64 bit trying to connect to ubuntu.
        I am using 32 bit os on linux and couchbase server 2.0.

        I am also using the lastest java client version 1.1

        Same Issue as described below.
        The only workaround is to not use windows, if my java client is running on linux then it will work with no issues, it just deadlocks on the windows machine.

        Show
        seand88 sean diamond added a comment - I am having this exact same problem. Using windows 7 64 bit trying to connect to ubuntu. I am using 32 bit os on linux and couchbase server 2.0. I am also using the lastest java client version 1.1 Same Issue as described below. The only workaround is to not use windows, if my java client is running on linux then it will work with no issues, it just deadlocks on the windows machine.
        Hide
        mscott Martin Scott added a comment -

        The stack trace where the client blocks

        Thread [main] (Stepping)
        BucketUpdateResponseHandler.getReceivedFuture() line: 147
        BucketUpdateResponseHandler.getLastResponse() line: 127
        BucketMonitor.startMonitor() line: 183
        ConfigurationProviderHTTP.subscribe(String, Reconfigurable) line: 243
        CouchbaseClient.<init>(CouchbaseConnectionFactory, boolean) line: 158
        CouchbaseClient.<init>(CouchbaseConnectionFactory) line: 125
        CouchbaseClient.<init>(List<URI>, String, String) line: 77
        Main.main(String[]) line: 67

        Show
        mscott Martin Scott added a comment - The stack trace where the client blocks Thread [main] (Stepping) BucketUpdateResponseHandler.getReceivedFuture() line: 147 BucketUpdateResponseHandler.getLastResponse() line: 127 BucketMonitor.startMonitor() line: 183 ConfigurationProviderHTTP.subscribe(String, Reconfigurable) line: 243 CouchbaseClient.<init>(CouchbaseConnectionFactory, boolean) line: 158 CouchbaseClient.<init>(CouchbaseConnectionFactory) line: 125 CouchbaseClient.<init>(List<URI>, String, String) line: 77 Main.main(String[]) line: 67

          People

          • Assignee:
            daschl Michael Nitschinger
            Reporter:
            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