Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-123

Client does not skip over unreachable nodes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • None
    • library
    • Security Level: Public
    • 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!

      Attachments

        Issue Links

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

          Activity

            People

              avsej Sergey Avseyev
              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

                  PagerDuty