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

select_bucket requests incorrectly mapped to Index/Query nodes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Resolved
    • Major
    • 4.1.12
    • 4.0.x, 4.1.x
    • None
    • None
    • 0

    Description

      cluster.bucket() faces time out when the bootstrapping node is an index or query node as select_bucket request goes to 11210 port on non-kv node.
       
      Tried this on all patches of Python SDK versions 4.0 and 4.1.
      Attached are the code ("temp.py") and SDK logs ("logs.log") from the Python SDK version 4.1.10 reproduction.
      The console output is:

      Traceback (most recent call last):
        File "/tmp/sdk/temp.py", line 46, in <module>
          cb = cluster.bucket(bucket_name)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/local/lib/python3.12/site-packages/couchbase/cluster.py", line 156, in bucket
          return Bucket(self, bucket_name)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/local/lib/python3.12/site-packages/couchbase/bucket.py", line 57, in __init__
          self._open_bucket()
        File "/usr/local/lib/python3.12/site-packages/couchbase/logic/wrappers.py", line 98, in wrapped_fn
          raise e
        File "/usr/local/lib/python3.12/site-packages/couchbase/logic/wrappers.py", line 82, in wrapped_fn
          ret = fn(self, *args, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/local/lib/python3.12/site-packages/couchbase/bucket.py", line 63, in _open_bucket
          raise ErrorMapper.build_exception(ret)
      couchbase.exceptions.UnAmbiguousTimeoutException: UnAmbiguousTimeoutException(<ec=14, category=couchbase.common, message=unambiguous_timeout (14), C Source=/tmp/pip-install-5ls48d9d/couchbase_ddfa2f50f6b645ef846387a44dd763c0/src/connection.cxx:112>) 

      Reproduction Steps: * create a 2-node cluster with 1 data node and 1 index/query node

      • run the attached Python code, with the connection string as only the Index/Query node.

      Attachments

        1. logs.log
          155 kB
        2. temp.py
          3 kB

        Issue Links

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

          Activity

            People

              jared.casey Jared Casey
              piyush.jain Piyush Jain
              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