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

Test failure - test_server_selection_in_window.TestProse.test_load_balancing

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • 4.0
    • Affects Version/s: None
    • Component/s: Tests
    • None

      This test occasionally fails

       [2021/01/26 01:41:52.929] FAIL [5.254s]: test_load_balancing (test_server_selection_in_window.TestProse)
       [2021/01/26 01:41:52.929] ----------------------------------------------------------------------
       [2021/01/26 01:41:52.929] Traceback (most recent call last):
       [2021/01/26 01:41:52.929]   File "/data/mci/9ab469e6144782fa8b9fcb5b0d319826/src/test/__init__.py", line 485, in wrap
       [2021/01/26 01:41:52.929]     return f(*args, **kwargs)
       [2021/01/26 01:41:52.929]   File "/data/mci/9ab469e6144782fa8b9fcb5b0d319826/src/test/__init__.py", line 485, in wrap
       [2021/01/26 01:41:52.929]     return f(*args, **kwargs)
       [2021/01/26 01:41:52.929]   File "/data/mci/9ab469e6144782fa8b9fcb5b0d319826/src/test/test_server_selection_in_window.py", line 150, in test_load_balancing
       [2021/01/26 01:41:52.929]     self.assertLessEqual(freqs[delayed_server], 0.25)
       [2021/01/26 01:41:52.929] AssertionError: 1.0 not less than or equal to 0.25
      

      https://evergreen.mongodb.com/task/mongo_python_driver_tests_python_version_rhel62_without_c_extensions__platform~rhel62_auth_ssl~noauth_nossl_python_version~3.6_c_extensions~without_c_extensions_coverage~coverage_test_4.4_sharded_cluster_ac4bacb66c66d9ab9d52671c467f68c057af767d_21_01_26_01_07_48

      I suspect the issue is the test is not waiting until both mongos nodes are discovered.

            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: