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

Check for unclosed PeriodicExecutors at the end of the test suite

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Tests
    • Labels:
      None

      In PYTHON-2268, we added a sanity check in the test suite to ensure that all Topology objects are closed. There are two limitations.

      1. We skip the “print_unclosed_clients” check on Jython (because Jython does not support gc.get_objects()).
      2. We don’t check the pymongo_kill_cursors_thread because it belongs to MongoClient and we only check Topology instances.

      We should extend the check at the end of the test suite to apply to the pymongo_kill_cursors_thread (or any unclosed PeriodicExecutor).

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

              Created:
              Updated: