Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: library
    • Security Level: Public
    • Labels:
      None

      Description

      In some recent testing, I found that the client does not skip over the array to find a reachable node. For example when I'm running one on localhost, this fails:

      <?php

      $hosts = array(
      '1.2.3.4',
      '127.0.0.1'
      );
      $client = new Couchbase($hosts, "default", "", "default");

      ?>

      Of course, when I leave out the first one it works. And it works too if I put the localhost before the invalid node.

      Here is the libcouchbase error:

      Warning: Failed to establish libcouchbase connection to server: Connection failure

      Hopefully this should be easy to reproduce!

        Issue Links

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

          Activity

          Hide
          ingenthr Matt Ingenthron added a comment -

          Trond, can you please have a look at this one?

          Show
          ingenthr Matt Ingenthron added a comment - Trond, can you please have a look at this one?
          Hide
          mnunberg Mark Nunberg added a comment -

          This is an issue in libcouchbase. We have a test for this specifically (though in this case, the test looks for an invalid hostname, not an invalid IP address.

          I've reproduced it with the unreachable IP address.

          This also works properly if the connection is refused. But not if the host is unreachable.

          Show
          mnunberg Mark Nunberg added a comment - This is an issue in libcouchbase. We have a test for this specifically (though in this case, the test looks for an invalid hostname, not an invalid IP address. I've reproduced it with the unreachable IP address. This also works properly if the connection is refused. But not if the host is unreachable.
          Hide
          trond Trond Norbye added a comment -

          I created http://www.couchbase.com/issues/browse/CCBC-122 for libcouchbase to track this.

          Show
          trond Trond Norbye added a comment - I created http://www.couchbase.com/issues/browse/CCBC-122 for libcouchbase to track this.
          Hide
          trond Trond Norbye added a comment -

          I'm marking this as incomplete (I don't want to mark it as fixed until it is fixed in libcouchbase... If I only knew how to move bugs over to another "project"

          Show
          trond Trond Norbye added a comment - I'm marking this as incomplete (I don't want to mark it as fixed until it is fixed in libcouchbase... If I only knew how to move bugs over to another "project"

            People

            • Assignee:
              avsej Sergey Avseyev
              Reporter:
              daschl Michael Nitschinger
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes