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

Check for unclosed PeriodicExecutors at the end of the test suite

    XMLWordPrintable

    Details

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

      Description

      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).

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated: