-
Type: Build Failure
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Tests
-
Labels:None
The "InsertMany fails after multiple network errors " spec test occasionally fails. I don't think it's platform, server, or python version specific. We see it pretty often though.
[2020/07/14 04:08:11.717] FAIL [0.692s]: test_retryable_writes_insertMany_InsertMany_fails_after_multiple_network_errors (test_retryable_writes.TestAllScenarios) [2020/07/14 04:08:11.717] ---------------------------------------------------------------------- [2020/07/14 04:08:11.717] Traceback (most recent call last): [2020/07/14 04:08:11.717] File "C:\data\mci\448f8adc2de2acdd912016645dde0d73\src\test\__init__.py", line 444, in wrap [2020/07/14 04:08:11.717] return f(*args, **kwargs) [2020/07/14 04:08:11.717] File "C:\data\mci\448f8adc2de2acdd912016645dde0d73\src\test\__init__.py", line 444, in wrap [2020/07/14 04:08:11.717] return f(*args, **kwargs) [2020/07/14 04:08:11.717] File "C:\data\mci\448f8adc2de2acdd912016645dde0d73\src\test\__init__.py", line 444, in wrap [2020/07/14 04:08:11.717] return f(*args, **kwargs) [2020/07/14 04:08:11.717] File "C:\data\mci\448f8adc2de2acdd912016645dde0d73\src\test\test_retryable_writes.py", line 85, in run_scenario [2020/07/14 04:08:11.717] self.run_scenario(scenario_def, test) [2020/07/14 04:08:11.717] File "C:\data\mci\448f8adc2de2acdd912016645dde0d73\src\test\utils_spec_runner.py", line 671, in run_scenario [2020/07/14 04:08:11.717] self.assertEqual(wrap_types(expected_c['data']), actual_data) [2020/07/14 04:08:11.717] AssertionError: Lists differ: [{'x': 11, '_id': 1}] != [{'x': 11, '_id': 1}, {'x': 22, '_id': 2}, {'x': 33, '_id': 3[18 chars]: 4}] [2020/07/14 04:08:11.717] Second list contains 3 additional elements. [2020/07/14 04:08:11.717] First extra element 1: [2020/07/14 04:08:11.717] {'x': 22, '_id': 2} [2020/07/14 04:08:11.717] - [{'_id': 1, 'x': 11}] [2020/07/14 04:08:11.717] ? ^ [2020/07/14 04:08:11.718] + [{'_id': 1, 'x': 11}, [2020/07/14 04:08:11.718] ? ^ [2020/07/14 04:08:11.718] + {'_id': 2, 'x': 22}, [2020/07/14 04:08:11.718] + {'_id': 3, 'x': 33}, [2020/07/14 04:08:11.718] + {'_id': 4, 'x': 44}]
From what I can gather, the server is failing our retyrable insert command twice with two onPrimaryTransactionalWrite network errors but somehow the collection still applies the write. Perhaps this is a bug in onPrimaryTransactionalWrite?
- is related to
-
PYTHON-1862 Test failure - test_retryable_reads_listIndexes_serverErrors_*
- Backlog
- related to
-
PYTHON-2327 Test failure - test_retryable_reads_listIndexes_serverErrors_ListIndexes_succeeds_after_ShutdownInProgress
- Backlog