Description
After creating a Cluster, and (using asyncio), we await the cluster.on_connect(), if we get an exception, the Cluster object can't be reused (say, just calling await cluster.on_connect() again).
The reason is, the underlying C bindings sets connected to True after that failed connection, and doesn't try to connect again, instead returning None.
Attachments
For Gerrit Dashboard: PYCBC-1077 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
164690,3 | PYCBC-1077: acouchbase - allow cluster object reuse after failed connection | master | couchbase-python-client | Status: MERGED | +2 | +1 |