Check for unclosed PeriodicExecutors at the end of the test suite

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Tests
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: