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

Test Failure - test_cleanup_executors_on_client_del

    • Type: Icon: Build Failure Build Failure
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • 4.10
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers
    • Not Needed
    • 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?

      This test is failing on PyPy:

       [2024/08/08 19:50:30.290] FAILURE: AssertionError: Didn't ever unregister executor: pymongo_events_thread ()
       [2024/08/08 19:50:30.290] self = <test.test_monitor.TestMonitor testMethod=test_cleanup_executors_on_client_del>
       [2024/08/08 19:50:30.290]     def test_cleanup_executors_on_client_del(self):
       [2024/08/08 19:50:30.290]         client = create_client()
       [2024/08/08 19:50:30.290]         executors = get_executors(client)
       [2024/08/08 19:50:30.290]         self.assertEqual(len(executors), 4)
       [2024/08/08 19:50:30.290]     
       [2024/08/08 19:50:30.290]         # Each executor stores a weakref to itself in _EXECUTORS.
       [2024/08/08 19:50:30.290]         executor_refs = [(r, r()._name) for r in _EXECUTORS.copy() if r() in executors]
       [2024/08/08 19:50:30.290]     
       [2024/08/08 19:50:30.290]         del executors
       [2024/08/08 19:50:30.290]         del client
       [2024/08/08 19:50:30.290]     
       [2024/08/08 19:50:30.290]         for ref, name in executor_refs:
       [2024/08/08 19:50:30.290] >           wait_until(partial(unregistered, ref), f"unregister executor: {name}", timeout=5)
       [2024/08/08 19:50:30.290] test/test_monitor.py:70: 
      

      https://spruce.mongodb.com/task/mongo_python_driver_tests_python_version_rhel8_test_ssl__platform~rhel8_auth_ssl~noauth_nossl_python_version~pypy3.10_coverage~coverage_test_8.0_replica_set_8939ea359c9f0fd7c38d19afba4da5ac82ae0f27_24_08_09_02_34_39?execution=0&sortBy=STATUS&sortDir=ASC

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

              Created:
              Updated: