Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-2730

Test failures due unnecessary getMore and killCursors calls in 5.0

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 3.12, 4.0
    • Affects Version/s: None
    • Component/s: Tests
    • None

      Test failures which depend on the fix in SERVER-57067.

       [2021/05/21 22:15:01.541] FAIL [0.022s]: test_command_monitoring_find_A_successful_find_event_with_a_getmore_and_the_server_kills_the_cursor (test_command_monitoring_spec.TestAllScenarios)
       [2021/05/21 22:15:01.541] ----------------------------------------------------------------------
       [2021/05/21 22:15:01.541] Traceback (most recent call last):
       [2021/05/21 22:15:01.541]   File "/data/mci/11ff8e9d6ed377cda2fa923dd1df1083/src/test/__init__.py", line 509, in wrap
       [2021/05/21 22:15:01.541]     return f(*args, **kwargs)
       [2021/05/21 22:15:01.541]   File "/data/mci/11ff8e9d6ed377cda2fa923dd1df1083/src/test/__init__.py", line 509, in wrap
       [2021/05/21 22:15:01.541]     return f(*args, **kwargs)
       [2021/05/21 22:15:01.541]   File "/data/mci/11ff8e9d6ed377cda2fa923dd1df1083/src/test/test_command_monitoring_spec.py", line 199, in run_scenario
       [2021/05/21 22:15:01.541]     self.assertEqual(val, actual[key])
       [2021/05/21 22:15:01.541] AssertionError: {'id': 0, 'ns': 'command-monitoring-tests.t[36 chars]44}]} != {'nextBatch': [{'_id': 4, 'x': 44}], 'id': [37 chars]est'}
       [2021/05/21 22:15:01.541] - {'id': 0,
       [2021/05/21 22:15:01.541] ?        ^
       [2021/05/21 22:15:01.541] + {'id': 42,
       [2021/05/21 22:15:01.541] ?        ^^
       [2021/05/21 22:15:01.541]    'nextBatch': [{'_id': 4, 'x': 44}],
       [2021/05/21 22:15:01.541]    'ns': 'command-monitoring-tests.test'}
       [2021/05/21 22:15:01.541] ======================================================================
       [2021/05/21 22:15:01.541] FAIL [0.045s]: test_A_successful_find_event_with_a_getmore_and_the_server_kills_the_cursor (test_unified_format.TestUnifiedTestFormatValidPassPocCommandMonitoring)
       [2021/05/21 22:15:01.541] ----------------------------------------------------------------------
       [2021/05/21 22:15:01.541] Traceback (most recent call last):
       [2021/05/21 22:15:01.541]   File "/data/mci/11ff8e9d6ed377cda2fa923dd1df1083/src/test/unified_format.py", line 1079, in test_case
       [2021/05/21 22:15:01.541]     self.run_scenario(spec)
       [2021/05/21 22:15:01.541]   File "/data/mci/11ff8e9d6ed377cda2fa923dd1df1083/src/test/unified_format.py", line 1066, in run_scenario
       [2021/05/21 22:15:01.541]     self.check_events(spec.get('expectEvents', []))
       [2021/05/21 22:15:01.541]   File "/data/mci/11ff8e9d6ed377cda2fa923dd1df1083/src/test/unified_format.py", line 1018, in check_events
       [2021/05/21 22:15:01.541]     self.match_evaluator.match_event(
       [2021/05/21 22:15:01.541]   File "/data/mci/11ff8e9d6ed377cda2fa923dd1df1083/src/test/unified_format.py", line 542, in match_event
       [2021/05/21 22:15:01.541]     self.match_result(reply, actual.reply)
       [2021/05/21 22:15:01.541]   File "/data/mci/11ff8e9d6ed377cda2fa923dd1df1083/src/test/unified_format.py", line 493, in match_result
       [2021/05/21 22:15:01.541]     return self._match_document(
       [2021/05/21 22:15:01.541]   File "/data/mci/11ff8e9d6ed377cda2fa923dd1df1083/src/test/unified_format.py", line 484, in _match_document
       [2021/05/21 22:15:01.541]     self.match_result(value, actual[key], in_recursive_call=True)
       [2021/05/21 22:15:01.541]   File "/data/mci/11ff8e9d6ed377cda2fa923dd1df1083/src/test/unified_format.py", line 493, in match_result
       [2021/05/21 22:15:01.541]     return self._match_document(
       [2021/05/21 22:15:01.541]   File "/data/mci/11ff8e9d6ed377cda2fa923dd1df1083/src/test/unified_format.py", line 484, in _match_document
       [2021/05/21 22:15:01.541]     self.match_result(value, actual[key], in_recursive_call=True)
       [2021/05/21 22:15:01.541]   File "/data/mci/11ff8e9d6ed377cda2fa923dd1df1083/src/test/unified_format.py", line 509, in match_result
       [2021/05/21 22:15:01.541]     self.test.assertEqual(expectation, actual)
       [2021/05/21 22:15:01.541] AssertionError: 0 != 7936722562614828350
      

      For now we should skip the failing tests on 5.0.

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: