-
Type: Build Failure
-
Resolution: Unresolved
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
Name of Failure:
test.test_bulk.TestBulkWriteConcern.test_write_concern_failure_ordered
test.test_bulk.TestBulkWriteConcern.test_write_concern_failure_unordered
Link to task:
Context of when and why the failure occurred:
Caused by PYTHON-4849.
Stack trace:
[2024/10/11 13:20:07.457] FAILURE: AssertionError: False is not true () [2024/10/11 13:20:07.457] self = <test.test_bulk.TestBulkWriteConcern testMethod=test_write_concern_failure_unordered> [2024/10/11 13:20:07.457] @client_context.require_version_max(7, 1) # PYTHON-4560 [2024/10/11 13:20:07.457] @client_context.require_replica_set [2024/10/11 13:20:07.457] @client_context.require_secondaries_count(1) [2024/10/11 13:20:07.457] def test_write_concern_failure_unordered(self): [2024/10/11 13:20:07.457] # Ensure we don't raise on wnote. [2024/10/11 13:20:07.457] coll_ww = self.coll.with_options(write_concern=WriteConcern(w=self.w)) [2024/10/11 13:20:07.457] result = coll_ww.bulk_write([DeleteOne({"something": "that does no exist"})], ordered=False) [2024/10/11 13:20:07.457] self.assertTrue(result.acknowledged) [2024/10/11 13:20:07.457] [2024/10/11 13:20:07.457] requests = [ [2024/10/11 13:20:07.457] InsertOne({"a": 1}), [2024/10/11 13:20:07.457] UpdateOne({"a": 3}, {"$set": {"a": 3, "b": 1}}, upsert=True), [2024/10/11 13:20:07.457] InsertOne({"a": 2}), [2024/10/11 13:20:07.457] ] [2024/10/11 13:20:07.457] # Replication wtimeout is a 'soft' error. [2024/10/11 13:20:07.457] # It shouldn't stop batch processing. [2024/10/11 13:20:07.457] try: [2024/10/11 13:20:07.457] self.cause_wtimeout(requests, ordered=False) [2024/10/11 13:20:07.457] except BulkWriteError as exc: [2024/10/11 13:20:07.457] details = exc.details [2024/10/11 13:20:07.457] self.assertEqual(exc.code, 65) [2024/10/11 13:20:07.457] else: [2024/10/11 13:20:07.457] self.fail("Error not raised") [2024/10/11 13:20:07.457] [2024/10/11 13:20:07.457] self.assertEqual(2, details["nInserted"]) [2024/10/11 13:20:07.457] self.assertEqual(1, details["nUpserted"]) [2024/10/11 13:20:07.457] self.assertEqual(0, len(details["writeErrors"])) [2024/10/11 13:20:07.457] # When talking to legacy servers there will be a [2024/10/11 13:20:07.457] # write concern error for each operation. [2024/10/11 13:20:07.457] > self.assertTrue(len(details["writeConcernErrors"]) > 1) [2024/10/11 13:20:07.457] E AssertionError: False is not true [2024/10/11 13:20:07.457] test/test_bulk.py:1077: AssertionError
- depends on
-
PYTHON-4860 Async client should use asyncio.Lock and asyncio.Condition
- Closed