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

Multiple load balancer transaction tests take >60 seconds each

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • 4.11
    • Affects Version/s: None
    • Component/s: Tests
    • None

      Some of the load balancer transaction tests are taking an absurdly long time (>60 seconds each):

       [2023/06/23 19:49:20.259]   test_a_connection_can_be_shared_by_a_transaction_and_a_cursor (test_load_balancer.TestLoadBalancerTransactions) ... ok (0.084s)
       [2023/06/23 19:49:20.355]   test_all_operations_go_to_the_same_mongos (test_load_balancer.TestLoadBalancerTransactions) ... ok (0.096s)
       [2023/06/23 19:49:20.436]   test_pinned_connection_is_not_released_after_a_non-transient_CRUD_error (test_load_balancer.TestLoadBalancerTransactions) ... ok (0.081s)
       [2023/06/23 19:49:20.519]   test_pinned_connection_is_not_released_after_a_non-transient_commit_error (test_load_balancer.TestLoadBalancerTransactions) ... ok (0.084s)
       [2023/06/23 19:50:32.675]   test_pinned_connection_is_released_after_a_non-transient_abort_error (test_load_balancer.TestLoadBalancerTransactions) ... ok (72.154s)
       [2023/06/23 19:52:02.671]   test_pinned_connection_is_released_after_a_transient_network_CRUD_error (test_load_balancer.TestLoadBalancerTransactions) ... ok (89.997s)
       [2023/06/23 19:52:02.756]   test_pinned_connection_is_released_after_a_transient_network_abort_error (test_load_balancer.TestLoadBalancerTransactions) ... ok (0.085s)
       [2023/06/23 19:53:32.676]   test_pinned_connection_is_released_after_a_transient_network_commit_error (test_load_balancer.TestLoadBalancerTransactions) ... ok (89.921s)
       [2023/06/23 19:53:32.765]   test_pinned_connection_is_released_after_a_transient_non-network_CRUD_error (test_load_balancer.TestLoadBalancerTransactions) ... ok (0.089s)
       [2023/06/23 19:53:32.852]   test_pinned_connection_is_released_after_a_transient_non-network_abort_error (test_load_balancer.TestLoadBalancerTransactions) ... ok (0.086s)
       [2023/06/23 19:55:02.676]   test_pinned_connection_is_released_after_a_transient_non-network_commit_error (test_load_balancer.TestLoadBalancerTransactions) ... ok (89.824s)
       [2023/06/23 19:56:32.670]   test_pinned_connection_is_released_on_successful_abort (test_load_balancer.TestLoadBalancerTransactions) ... ok (89.995s)
       [2023/06/23 19:56:32.764]   test_pinned_connection_is_returned_when_a_new_transaction_is_started (test_load_balancer.TestLoadBalancerTransactions) ... ok (0.094s)
       [2023/06/23 19:56:32.854]   test_pinned_connection_is_returned_when_a_non-transaction_operation_uses_the_session (test_load_balancer.TestLoadBalancerTransactions) ... ok (0.090s)
       [2023/06/23 19:56:32.946]   test_sessions_are_reused_in_LB_mode (test_load_balancer.TestLoadBalancerTransactions) ... ok (0.090s)
       [2023/06/23 19:56:33.038]   test_transaction_can_be_committed_multiple_times (test_load_balancer.TestLoadBalancerTransactions) ... ok (0.094s)
      

      https://spruce.mongodb.com/task/mongo_python_driver_load_balancer__platform~rhel8_auth_ssl~noauth_nossl_mongodb_version~6.0_python_version~3.10_loadbalancer~enabled_load_balancer_test_eb8013ce026a639339603361e45364c3498a66cb_23_06_22_21_21_04/tests?execution=0&page=0&sortBy=DURATION&sortDir=DESC

      This could be caused by removing the transactionLifetimeLimitSeconds=3 in DRIVERS-2286: https://github.com/10gen/mongo-orchestration/commit/dd9f9400e09b9762610ef62a7aca96b379a5f0c2

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

              Created:
              Updated: