ExportXMLWordPrintableJSON

    • Type: Build Failure
    • Resolution: Gone away
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • 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?
    • None
    • None
    • None
    • None
    • None
    • None

      Name of Failure:

      test.asynchronous.test_client.TestClient.test_continuous_network_errors and test.test_client.TestClient.test_continuous_network_errors

      Link to task:

      Logs enabled: https://spruce.mongodb.com/task/mongo_python_driver_compression_snappy_rhel8_test_compression_latest_python3.13_patch_e7c0814512ef4bc104bd17919acd80319460e1a0_67efcd670de80f0007dd4ac3_25_04_04_12_17_07/tests?execution=0&sortBy=STATUS&sortDir=ASC

      Logs disabled:
      https://spruce.mongodb.com/task/mongo_python_driver_compression_snappy_rhel8_test_compression_latest_python3.13_patch_e7c0814512ef4bc104bd17919acd80319460e1a0_67efe5673a76240007e7bdfc_25_04_04_13_58_08?execution=0&sortBy=STATUS&sortDir=ASC

      Context of when and why the failure occurred:

      Maybe PYTHON-4557?

      Stack trace:

       [2025/04/04 05:29:54.541] FAILURE: AssertionError: 2 != 48 within 30 delta (46 difference) ()
       [2025/04/04 05:29:54.541] self = <test.asynchronous.test_client.TestClient testMethod=test_continuous_network_errors>
       [2025/04/04 05:29:54.541]     @unittest.skipIf("PyPy" in sys.version, "PYTHON-2927 fails often on PyPy")
       [2025/04/04 05:29:54.541]     async def test_continuous_network_errors(self):
       [2025/04/04 05:29:54.541]         def server_description_count():
       [2025/04/04 05:29:54.541]             i = 0
       [2025/04/04 05:29:54.541]             for obj in gc.get_objects():
       [2025/04/04 05:29:54.541]                 try:
       [2025/04/04 05:29:54.541]                     if isinstance(obj, ServerDescription):
       [2025/04/04 05:29:54.541]                         i += 1
       [2025/04/04 05:29:54.541]                 except ReferenceError:
       [2025/04/04 05:29:54.541]                     pass
       [2025/04/04 05:29:54.541]             return i
       [2025/04/04 05:29:54.541]     
       [2025/04/04 05:29:54.541]         gc.collect()
       [2025/04/04 05:29:54.541]         with client_knobs(min_heartbeat_interval=0.002):
       [2025/04/04 05:29:54.541]             client = self.simple_client(
       [2025/04/04 05:29:54.541]                 "invalid:27017", heartbeatFrequencyMS=2, serverSelectionTimeoutMS=200
       [2025/04/04 05:29:54.541]             )
       [2025/04/04 05:29:54.541]             initial_count = server_description_count()
       [2025/04/04 05:29:54.541]             with self.assertRaises(ServerSelectionTimeoutError):
       [2025/04/04 05:29:54.541]                 await client.test.test.find_one()
       [2025/04/04 05:29:54.541]             gc.collect()
       [2025/04/04 05:29:54.541]             final_count = server_description_count()
       [2025/04/04 05:29:54.541]             await client.close()
       [2025/04/04 05:29:54.541]             # If a bug like PYTHON-2433 is reintroduced then too many
       [2025/04/04 05:29:54.541]             # ServerDescriptions will be kept alive and this test will fail:
       [2025/04/04 05:29:54.541]             # AssertionError: 11 != 47 within 20 delta (36 difference)
       [2025/04/04 05:29:54.541] >           self.assertAlmostEqual(initial_count, final_count, delta=30)
       [2025/04/04 05:29:54.541] E           AssertionError: 2 != 48 within 30 delta (46 difference)
       [2025/04/04 05:29:54.541] test/asynchronous/test_client.py:1882: AssertionError
      

            Assignee:
            Unassigned
            Reporter:
            Noah Stapp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: