Details
Description
The connect object throws an error and does not try the 2nd hostname/ip in the list.
Can reproduce with a 2 line script.
cb1 is up.
cb2 is shutdown
This fails:
from couchbase import Couchbase
cb = Couchbase.connect(host= ['cb2','cb1'], bucket='Jimmy')
This works:
from couchbase import Couchbase
cb = Couchbase.connect(host= ['cb1','cb2'], bucket='Jimmy')
Error message:
Traceback (most recent call last):
File "cb.py", line 2, in <module>
cb = Couchbase.connect(host= ['cb2','cb1'], bucket='Jimmy')
File "C:\Python27\lib\site-packages\couchbase_init_.py", line 212, in conne
ct
**kwargs)
File "C:\Python27\lib\site-packages\couchbase\connection.py", line 88, in __in
it__
super(Connection, self)._init_(**kwargs)
couchbase.exceptions.ConnectError: <RC=0x18[Connection failure], There was a pro
blem while trying to send/receive your request over the network. This may be a r
esult of a bad network or a misconfigured client or server., C Source=(src\conne
ction.c,537)>
I tried swapping the libcouchbase.dll shipped with the python client with the 2.1.2 version. The result was the same.
Expectation:
For the client to throw a warning and try the 2nd, 3rd, etc IP/hostname in the list and to only error once all IP addresses fail.