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

MongoClient.close may create new connections

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.5, 3.6, 3.7, 3.8, 3.9, 3.10
    • 3.10.1
    • None
    • None

    Description

      Discovered while investigating PYTHON-2089; MongoClient.close may actually create new connections during the call to MongoClient._process_periodic_tasks() which in turn calls Topology.update_pool(). This is useless work since the newly created connections are immediately closed. To fix this we should avoid calling Topology.update_pool() when closing a MongoClient.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: