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

[Build Failure] Load balancer failures on Serverless Proxy

    • Type: Icon: Build Failure Build Failure
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • Python Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Name of Failure:

      test.test_load_balancer.TestLoadBalancerSdamErrorHandling.test_errors_during_the_initial_connection_hello_are_ignored
      test.test_load_balancer.TestLoadBalancerTransactions.test_pinned_connection_is_released_after_a_transient_network_commit_error

      Link to task:

      https://spruce.mongodb.com/task/mongo_python_driver_serverless_proxy__platform~rhel8_auth_ssl~auth_ssl_python_version~3.10_serverless~proxy_test_serverless_b041ca5f7c201f1b0ecb97c517a1ece8d775c00a_24_03_05_15_53_53/tests?execution=0&sortBy=STATUS&sortDir=ASC

      Context of when and why the failure occurred:

      PYTHON-4031 Add driver tests for Serverless Proxy incremental rollout

      Stack trace:

       [2024/03/05 13:52:36.487] FAILURE: AssertionError: Excepted error {'isClientError': True} but "insertOne" succeeded: InsertOneResult(ObjectId('65e776bcaf13b5b4c13aba5e'), acknowledged=True) ()
       [2024/03/05 13:52:36.487] self = <test.test_load_balancer.TestLoadBalancerSdamErrorHandling testMethod=test_errors_during_the_initial_connection_hello_are_ignored>
       [2024/03/05 13:52:36.487]     def test_case(self):
       [2024/03/05 13:52:36.487] >       self.run_scenario(spec)
       [2024/03/05 13:52:36.487] test/unified_format.py:1854: 
       [2024/03/05 13:52:36.487] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
       [2024/03/05 13:52:36.487] test/unified_format.py:1801: in run_scenario
       [2024/03/05 13:52:36.487]     self._run_scenario(spec, uri)
       [2024/03/05 13:52:36.487] test/unified_format.py:1831: in _run_scenario
       [2024/03/05 13:52:36.487]     self.run_operations(spec["operations"])
       [2024/03/05 13:52:36.487] test/unified_format.py:1693: in run_operations
       [2024/03/05 13:52:36.487]     self.run_entity_operation(op)
       [2024/03/05 13:52:36.487] test/unified_format.py:1446: in run_entity_operation
       [2024/03/05 13:52:36.487]     self.fail(f'Excepted error {expect_error} but "{opname}" succeeded: {result}')
       [2024/03/05 13:52:36.487] E   AssertionError: Excepted error {'isClientError': True} but "insertOne" succeeded: InsertOneResult(ObjectId('65e776bcaf13b5b4c13aba5e'), acknowledged=True)
      
       [2024/03/05 13:52:36.545] FAILURE: AssertionError: 0 != 1 ()
       [2024/03/05 13:52:36.545] self = <test.test_load_balancer.TestLoadBalancerTransactions testMethod=test_pinned_connection_is_released_after_a_transient_network_commit_error>
       [2024/03/05 13:52:36.545]     def test_case(self):
       [2024/03/05 13:52:36.545] >       self.run_scenario(spec)
       [2024/03/05 13:52:36.545] test/unified_format.py:1854: 
       [2024/03/05 13:52:36.545] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
       [2024/03/05 13:52:36.545] test/unified_format.py:1801: in run_scenario
       [2024/03/05 13:52:36.545]     self._run_scenario(spec, uri)
       [2024/03/05 13:52:36.545] test/unified_format.py:1831: in _run_scenario
       [2024/03/05 13:52:36.545]     self.run_operations(spec["operations"])
       [2024/03/05 13:52:36.545] test/unified_format.py:1691: in run_operations
       [2024/03/05 13:52:36.545]     self.run_special_operation(op)
       [2024/03/05 13:52:36.545] test/unified_format.py:1686: in run_special_operation
       [2024/03/05 13:52:36.545]     method(spec["arguments"])
       [2024/03/05 13:52:36.545] test/unified_format.py:1556: in _testOperation_assertNumberConnectionsCheckedOut
       [2024/03/05 13:52:36.545]     self.assertEqual(spec["connections"], pool.active_sockets)
       [2024/03/05 13:52:36.545] E   AssertionError: 0 != 1
      

            Assignee:
            noah.stapp@mongodb.com Noah Stapp
            Reporter:
            steve.silvester@mongodb.com Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: