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!
<?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
- duplicates
-
CCBC-122
Handle timeout for connecting to a cluster
-