Details
-
Bug
-
Resolution: Fixed
-
Major
-
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
For Gerrit Dashboard: PYCBC-1612 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
213433,2 | PYCBC-1612: Allow durability setting for multi mutation operations | master | couchbase-python-client | Status: MERGED | +2 | +1 |
215067,4 | CBQE-8215: Fixing test_sync_write_in_progress tests | master_py3_dev | TAF | Status: MERGED | +2 | +1 |