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

Test Failure - test_Rediscover_quickly_after_replSetStepDown

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.3
    • Affects Version/s: None
    • Component/s: None
    • None

      This has failed a few times recently:

       [2022/08/18 19:01:12.109] FAIL [1.136s]: test_Rediscover_quickly_after_replSetStepDown (test_discovery_and_monitoring.TestUnifiedRediscoverQuicklyAfterStepDown)
       [2022/08/18 19:01:12.109] ----------------------------------------------------------------------
       [2022/08/18 19:01:12.109] Traceback (most recent call last):
       [2022/08/18 19:01:12.109]   File "/data/mci/860d415131bdcdc680b7ad40e0054223/src/test/unified_format.py", line 1626, in test_case
       [2022/08/18 19:01:12.109]     self.run_scenario(spec)
       [2022/08/18 19:01:12.109]   File "/data/mci/860d415131bdcdc680b7ad40e0054223/src/test/unified_format.py", line 1609, in run_scenario
       [2022/08/18 19:01:12.109]     self.check_events(expect_events)
       [2022/08/18 19:01:12.109]   File "/data/mci/860d415131bdcdc680b7ad40e0054223/src/test/unified_format.py", line 1553, in check_events
       [2022/08/18 19:01:12.109]     self.assertEqual(len(actual_events), len(events), actual_events)
       [2022/08/18 19:01:12.109] AssertionError: 3 != 2 : [<CommandStartedEvent ('localhost', 27018) db: 'sdam-tests', command: 'insert', operation_id: -648408435, service_id: None>, <CommandStartedEvent ('localhost', 27018) db: 'sdam-tests', command: 'insert', operation_id: 1179816366, service_id: None>, <CommandStartedEvent ('localhost', 27017) db: 'sdam-tests', command: 'insert', operation_id: 1179816366, service_id: None>]
      

      https://spruce.mongodb.com/task/mongo_python_driver_tests_python_version_ubuntu18_test_ssl__platform~ubuntu_18.04_auth_ssl~auth_ssl_python_version~3.10_coverage~coverage_test_4.4_replica_set_patch_4170dc958e2ac1a43d92fe0ea3bb8f22674cff0a_62fe8982d1fe0759ef83bdca_22_08_18_18_48_35/logs?execution=0&sortBy=STATUS&sortDir=ASC

      Here's the yaml test: https://github.com/mongodb/specifications/blob/08baffe/source/server-discovery-and-monitoring/tests/unified/rediscover-quickly-after-step-down.yml#L30

      This could be a bug in the conversion from legacy to unified in DRIVERS-2366/PYTHON-3312.

            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: