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

Ambiguous timeout exception during upsert_multi for non existent collection

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 4.1.10
    • None
    • Enterprise Edition 7.6.0 build 2149
    • 0

    Description

      1. expected CollectionNotFoundException when inserting documents for scope default and collection - default (does not exist/ deleted) but getting the following Exception (please check sdk_logs_ambigious.log)

      MultiMutationResult( C2940BA0-30_802:AmbiguousTimeoutException(<ec=13, category=couchbase.common, message=ambiguous_timeout (13), context=KeyValueErrorContext:{'retry_attempts': 0, 'retry_reasons': {'key_value_collection_outdated'}, 'key': 'C2940BA0-30_802', 'bucket_name': 'bucket-1', 'scope_name': 'default', 'collection_name': 'default', 'opaque': 2626}, C Source=/couchbase-python-client/src/kv_ops.cxx:651>), C2940BA0-30_804:AmbiguousTimeoutException(<ec=13, category=couchbase.common, message=ambiguous_timeout (13), context=KeyValueErrorContext:{'retry_attempts': 0, 'retry_reasons': {'key_value_collection_outdated'}, 'key': 'C2940BA0-30_804', 'bucket_name': 'bucket-1', 'scope_name': 'default', 'collection_name': 'default', 'opaque': 2628}, C Source=/couchbase-python-client/src/kv_ops.cxx:651>), C2940BA0-30_807:AmbiguousTimeoutException(<ec=13, category=couchbase.common, message=ambiguous_timeout (13), context=KeyValueErrorContext:{'retry_attempts': 0, 'retry_reasons': {'key_value_collection_outdated'}, 'key': 'C2940BA0-30_807', 'bucket_name': 'bucket-1', 'scope_name': 'default', 'collection_name': 'default', 'opaque': 2630}, C Source=/couchbase-python-client/src/kv_ops.cxx:651>), C2940BA0-30_808:AmbiguousTimeoutException(<ec=13, category=couchbase.common, message=ambiguous_timeout (13), context=KeyValueErrorContext:{'retry_attempts': 0, 'retry_reasons': {'key_value_collection_outdated'}, 'key': 'C2940BA0-30_808', 'bucket_name': 'bucket-1', 'scope_name': 'default', 'collection_name': 'default', 'opaque': 2632}, C Source=/couchbase-python-client/src/kv_ops.cxx:651>), C2940BA0-30_811:AmbiguousTimeoutException(<ec=13, category=couchbase.common, message=ambiguous_timeout (13), context=KeyValueErrorContext:{'retry_attempts': 0, 'retry_reasons': {'key_value_collection_outdated'}, 'key': 'C2940BA0-30_811', 'bucket_name': 'bucket-1', 'scope_name': 'default', 'collection_name': 'default', 'opaque': 2634}, C Source=/couchbase-python-client/src/kv_ops.cxx:651>), C2940BA0-30_812:AmbiguousTimeoutException(<ec=13, category=couchbase.common, message=ambiguous_timeout (13), context=KeyValueErrorContext:{'retry_attempts': 0, 'retry_reasons': {'key_value_collection_outdated'}, 'key': 'C2940BA0-30_812', 

      please note that difference between both cases is that - scope and collection is created and deleted by user for the first case 
      and for the case below I'm deleting _default collection which is present by default and then attempting to insert docs post deleting it.

      2. when running the same test on _default collection(deleted) of _default scope , we do get expected CollectionNotFoundException exception please refer sdk_logs_coll_not_found.log

      MultiMutationResult( B3F6D7E5-20_2801:CollectionNotFoundException(<ec=11, category=couchbase.common, message=collection_not_found (11), context=KeyValueErrorContext:{'retry_attempts': 0, 'retry_reasons': {'key_value_collection_outdated'}, 'key': 'B3F6D7E5-20_2801', 'bucket_name': 'bucket-1', 'scope_name': '_default', 'collection_name': '_default', 'opaque': 3580}, C Source=/couchbase-python-client/src/kv_ops.cxx:651>), B3F6D7E5-20_2802:CollectionNotFoundException(<ec=11, category=couchbase.common, message=collection_not_found (11), context=KeyValueErrorContext:{'retry_attempts': 0, 'retry_reasons': {'key_value_collection_outdated'}, 'key': 'B3F6D7E5-20_2802', 'bucket_name': 'bucket-1', 'scope_name': '_default', 'collection_name': '_default', 'opaque': 3581}, C Source=/couchbase-python-client/src/kv_ops.cxx:651>), B3F6D7E5-20_2807:CollectionNotFoundException(<ec=11, category=couchbase.common, message=collection_not_found (11), context=KeyValueErrorContext:{'retry_attempts': 0, 'retry_reasons': {'key_value_collection_outdated'}, 'key': 'B3F6D7E5-20_2807', 'bucket_name': 'bucket-1', 'scope_name': '_default', 'collection_name': '_default', 'opaque': 3582}, C Source=/couchbase-python-client/src/kv_ops.cxx:651>), B3F6D7E5-20_2804:CollectionNotFoundException(<ec=11, category=couchbase.common, message=collection_not_found (11), context=KeyValueErrorContext:{'retry_attempts': 0, 'retry_reasons': {'key_value_collection_outdated'}, 'key': 'B3F6D7E5-20_2804', 'bucket_name': 'bucket-1', 'scope_name': '_default', 'collection_name': '_default', 'opaque': 3778}, C Source=/couchbase-python-client/src/kv_ops.cxx:651>), B3F6D7E5-20_2808:CollectionNotFoundException(<ec=11, category=couchbase.common, message=collection_not_found (11), context=KeyValueErrorContext:{'retry_attempts': 0, 'retry_reasons': {'key_value_collection_outdated'}, 'key': 'B3F6D7E5-20_2808', 'bucket_name': 'bucket-1', 'scope_name': '_default', 'collection_name': '_default', 'opaque': 3779}, C Source=/couchbase-python-client/src/kv_ops.cxx:651>), B3F6D7E5-20_2811:CollectionNotFoundException(<ec=11, category=couchbase.common, message=collection_not_found (11), context=KeyValueErrorContext:{'retry_attempts': 0, 'retry_reasons': {'key_value_collection_outdated'}, 'key': 'B3F6D7E5-20_2811', 'bucket_name': 'bucket-1', 'scope_name': '_default', 'collection_name': '_default', 'opaque': 3780}, C Source=/couchbase-python-client/src/kv_ops.cxx:651>), B3F6D7E5-20_2803:CollectionNotFoundException(<ec=11, category=couchbase.common, message=collection_not_found (11), context=KeyValueErrorContext:{'retry_attempts': 0, 'retry_reasons': {'key_value_collection_outdated'}, 'key': 'B3F6D7E5-20_2803', 'bucket_name': 'bucket-1', 'scope_name': '_default', 'collection_name': '_default', 'opaque': 3987}, C Source=/couchbase-python-client/src/kv_ops.cxx:651>), B3F6D7E5-20_2805:CollectionNotFoundException(<ec=11, category=couchbase.c

       

      Attachments

        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
              pulkit.matta Pulkit Matta
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty