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

Test Failure - test_load_balancer failing

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

      test_load_balancer is failing after the changes in PYTHON-2683:

       [2022/06/08 02:54:46.758] FAIL [0.107s]: test_errors_during_the_initial_connection_hello_are_ignored (test_load_balancer.TestLoadBalancerSdamErrorHandling)
       [2022/06/08 02:54:46.758] ----------------------------------------------------------------------
       [2022/06/08 02:54:46.758] Traceback (most recent call last):
       [2022/06/08 02:54:46.758]   File "/data/mci/b93e5e8afe8b663e2f1c7d4a2323ab12/src/test/unified_format.py", line 1277, in test_case
       [2022/06/08 02:54:46.758]     self.run_scenario(spec)
       [2022/06/08 02:54:46.758]   File "/data/mci/b93e5e8afe8b663e2f1c7d4a2323ab12/src/test/unified_format.py", line 1260, in run_scenario
       [2022/06/08 02:54:46.758]     self.check_events(expect_events)
       [2022/06/08 02:54:46.758]   File "/data/mci/b93e5e8afe8b663e2f1c7d4a2323ab12/src/test/unified_format.py", line 1205, in check_events
       [2022/06/08 02:54:46.758]     self.assertEqual(len(actual_events), len(events), actual_events)
       [2022/06/08 02:54:46.758] AssertionError: 4 != 3 : [ConnectionCreatedEvent(('127.0.0.1', 8000), 1), ConnectionClosedEvent(('127.0.0.1', 8000), 1, 'error'), ConnectionCheckOutFailedEvent(('127.0.0.1', 8000), 'connectionError'), PoolClearedEvent(('127.0.0.1', 8000), None)]
       [2022/06/08 02:54:46.758] ======================================================================
       [2022/06/08 02:54:46.758] FAIL [3.589s]: test_pinned_connection_is_released_after_a_non-transient_abort_error (test_load_balancer.TestLoadBalancerTransactions)
       [2022/06/08 02:54:46.758] ----------------------------------------------------------------------
       [2022/06/08 02:54:46.758] Traceback (most recent call last):
       [2022/06/08 02:54:46.758]   File "/data/mci/b93e5e8afe8b663e2f1c7d4a2323ab12/src/test/unified_format.py", line 1277, in test_case
       [2022/06/08 02:54:46.758]     self.run_scenario(spec)
       [2022/06/08 02:54:46.758]   File "/data/mci/b93e5e8afe8b663e2f1c7d4a2323ab12/src/test/unified_format.py", line 1260, in run_scenario
       [2022/06/08 02:54:46.758]     self.check_events(expect_events)
       [2022/06/08 02:54:46.758]   File "/data/mci/b93e5e8afe8b663e2f1c7d4a2323ab12/src/test/unified_format.py", line 1205, in check_events
       [2022/06/08 02:54:46.758]     self.assertEqual(len(actual_events), len(events), actual_events)
       [2022/06/08 02:54:46.758] AssertionError: 6 != 5 : [ConnectionReadyEvent(('127.0.0.1', 8001), 1), ConnectionCheckedOutEvent(('127.0.0.1', 8001), 1), ConnectionCheckedInEvent(('127.0.0.1', 8001), 1), ConnectionCheckedOutEvent(('127.0.0.1', 8001), 1), ConnectionCheckedInEvent(('127.0.0.1', 8001), 1), ConnectionClosedEvent(('127.0.0.1', 8001), 1, 'stale')]
       [2022/06/08 02:54:46.758] ======================================================================
       [2022/06/08 02:54:46.758] FAIL [0.101s]: test_pinned_connection_is_released_after_a_transient_non-network_abort_error (test_load_balancer.TestLoadBalancerTransactions)
       [2022/06/08 02:54:46.758] ----------------------------------------------------------------------
       [2022/06/08 02:54:46.758] Traceback (most recent call last):
       [2022/06/08 02:54:46.758]   File "/data/mci/b93e5e8afe8b663e2f1c7d4a2323ab12/src/test/unified_format.py", line 1277, in test_case
       [2022/06/08 02:54:46.758]     self.run_scenario(spec)
       [2022/06/08 02:54:46.758]   File "/data/mci/b93e5e8afe8b663e2f1c7d4a2323ab12/src/test/unified_format.py", line 1260, in run_scenario
       [2022/06/08 02:54:46.758]     self.check_events(expect_events)
       [2022/06/08 02:54:46.758]   File "/data/mci/b93e5e8afe8b663e2f1c7d4a2323ab12/src/test/unified_format.py", line 1205, in check_events
       [2022/06/08 02:54:46.758]     self.assertEqual(len(actual_events), len(events), actual_events)
       [2022/06/08 02:54:46.758] AssertionError: 6 != 5 : [ConnectionReadyEvent(('127.0.0.1', 8001), 1), ConnectionCheckedOutEvent(('127.0.0.1', 8001), 1), ConnectionCheckedInEvent(('127.0.0.1', 8001), 1), ConnectionCheckedOutEvent(('127.0.0.1', 8001), 1), ConnectionCheckedInEvent(('127.0.0.1', 8001), 1), ConnectionClosedEvent(('127.0.0.1', 8001), 1, 'stale')]
       [2022/06/08 02:54:46.758] ======================================================================
       [2022/06/08 02:54:46.758] FAIL [4.295s]: test_pinned_connection_is_released_after_a_transient_non-network_commit_error (test_load_balancer.TestLoadBalancerTransactions)
       [2022/06/08 02:54:46.758] ----------------------------------------------------------------------
       [2022/06/08 02:54:46.758] Traceback (most recent call last):
       [2022/06/08 02:54:46.758]   File "/data/mci/b93e5e8afe8b663e2f1c7d4a2323ab12/src/test/unified_format.py", line 1277, in test_case
       [2022/06/08 02:54:46.758]     self.run_scenario(spec)
       [2022/06/08 02:54:46.758]   File "/data/mci/b93e5e8afe8b663e2f1c7d4a2323ab12/src/test/unified_format.py", line 1260, in run_scenario
       [2022/06/08 02:54:46.758]     self.check_events(expect_events)
       [2022/06/08 02:54:46.758]   File "/data/mci/b93e5e8afe8b663e2f1c7d4a2323ab12/src/test/unified_format.py", line 1205, in check_events
       [2022/06/08 02:54:46.758]     self.assertEqual(len(actual_events), len(events), actual_events)
       [2022/06/08 02:54:46.758] AssertionError: 6 != 5 : [ConnectionReadyEvent(('127.0.0.1', 8001), 1), ConnectionCheckedOutEvent(('127.0.0.1', 8001), 1), ConnectionCheckedInEvent(('127.0.0.1', 8001), 1), ConnectionCheckedOutEvent(('127.0.0.1', 8001), 1), ConnectionCheckedInEvent(('127.0.0.1', 8001), 1), ConnectionClosedEvent(('127.0.0.1', 8001), 1, 'stale')]
       [2022/06/08 02:54:46.758] ======================================================================
       [2022/06/08 02:54:46.758] FAIL [0.200s]: test_wait_queue_timeout_errors_include_cursor_statistics (test_load_balancer.TestLoadBalancerWaitQueueTimeouts)
       [2022/06/08 02:54:46.758] ----------------------------------------------------------------------
       [2022/06/08 02:54:46.758] Traceback (most recent call last):
       [2022/06/08 02:54:46.758]   File "/data/mci/b93e5e8afe8b663e2f1c7d4a2323ab12/src/test/unified_format.py", line 1277, in test_case
       [2022/06/08 02:54:46.758]     self.run_scenario(spec)
       [2022/06/08 02:54:46.758]   File "/data/mci/b93e5e8afe8b663e2f1c7d4a2323ab12/src/test/unified_format.py", line 1260, in run_scenario
       [2022/06/08 02:54:46.758]     self.check_events(expect_events)
       [2022/06/08 02:54:46.758]   File "/data/mci/b93e5e8afe8b663e2f1c7d4a2323ab12/src/test/unified_format.py", line 1205, in check_events
       [2022/06/08 02:54:46.758]     self.assertEqual(len(actual_events), len(events), actual_events)
       [2022/06/08 02:54:46.758] AssertionError: 3 != 2 : [ConnectionCheckedOutEvent(('127.0.0.1', 8001), 1), ConnectionCheckOutFailedEvent(('127.0.0.1', 8001), 'timeout'), ConnectionCheckOutFailedEvent(('127.0.0.1', 8001), 'timeout')]
       [2022/06/08 02:54:46.758] ======================================================================
       [2022/06/08 02:54:46.758] FAIL [0.232s]: test_wait_queue_timeout_errors_include_transaction_statistics (test_load_balancer.TestLoadBalancerWaitQueueTimeouts)
       [2022/06/08 02:54:46.758] ----------------------------------------------------------------------
       [2022/06/08 02:54:46.758] Traceback (most recent call last):
       [2022/06/08 02:54:46.758]   File "/data/mci/b93e5e8afe8b663e2f1c7d4a2323ab12/src/test/unified_format.py", line 1277, in test_case
       [2022/06/08 02:54:46.758]     self.run_scenario(spec)
       [2022/06/08 02:54:46.758]   File "/data/mci/b93e5e8afe8b663e2f1c7d4a2323ab12/src/test/unified_format.py", line 1260, in run_scenario
       [2022/06/08 02:54:46.758]     self.check_events(expect_events)
       [2022/06/08 02:54:46.758]   File "/data/mci/b93e5e8afe8b663e2f1c7d4a2323ab12/src/test/unified_format.py", line 1205, in check_events
       [2022/06/08 02:54:46.758]     self.assertEqual(len(actual_events), len(events), actual_events)
       [2022/06/08 02:54:46.758] AssertionError: 3 != 2 : [ConnectionCheckedOutEvent(('127.0.0.1', 8001), 1), ConnectionCheckOutFailedEvent(('127.0.0.1', 8001), 'timeout'), ConnectionCheckOutFailedEvent(('127.0.0.1', 8001), 'timeout')]
      

      https://evergreen.mongodb.com/task/mongo_python_driver_load_balancer__platform~ubuntu_18.04_auth_ssl~noauth_nossl_mongodb_version~rapid_python_version~3.9_loadbalancer~enabled_load_balancer_test_62a630218179a77e662630a6799d7c3f267459c0_22_06_01_23_26_52

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

              Created:
              Updated:
              Resolved: