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

Durability setting is getting ignored when passed through InsertMultiOptions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.3.1
    • 4.3.0
    • None
    • None
    • python/3.10.14
    • 1
    • SDK30

    Description

      In the setting where I am running given script pythonPulkit.py , expecting an exception related to durability not possible as bucket replica is set to 3 
      when passing

      ServerDurability(level=DurabilityLevel.MAJORITY)

      as option inside InsertMultiOptions it is successfully loading  docs given in the script but we expected some durability exception 
      checking the same using TCP dump / wireshark durability is seen as none
      attaching the script and logs with this ticket

      when passing durability directly 

      Result = collection.insert_multi(key_values, durability=DurabilityLevel.MAJORITY)

      getting the expected error

      MultiMutationResult( doc_1:DurabilityImpossibleException(<ec=108, category=couchbase.key_value, message=durability_impossible (108), context=KeyValueErrorContext:{'retry_attempts': 0, 'key': 'doc_1', 'bucket_name': 'default', 'scope_name': '_default', 'collection_name': '_default', 'opaque': 8, 'status_code': 161, 'error_map_info': {'code': 161, 'name': 'DurabilityImpossible', 'description': 'Durability requirements are impossible to achieve', 'attributes': {1, 2}}}, C Source=/couchbase-python-client/src/kv_ops.cxx:679>), doc_2:DurabilityImpossibleException(<ec=108, category=couchbase.key_value, message=durability_impossible (108), context=KeyValueErrorContext:{'retry_attempts': 0, 'key': 'doc_2', 'bucket_name': 'default', 'scope_name': '_default', 'collection_name': '_default', 'opaque': 9, 'status_code': 161, 'error_map_info': {'code': 161, 'name': 'DurabilityImpossible', 'description': 'Durability requirements are impossible to achieve', 'attributes': {1, 2}}}, C Source=/couchbase-python-client/src/kv_ops.cxx:679>) )

      Attachments

        1. pythonPulkit.py
          2 kB
          Pulkit Matta
        2. sdk_logs-1.log
          34 kB
          Pulkit Matta
        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:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty