Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-1077

Async Cluster object cannot be reused after failed connection

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.2.3
    • 3.0.6
    • library
    • None
    • 1

    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

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

        Activity

          People

            jared.casey Jared Casey
            david.kelly David Kelly (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty