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

ReplicaSetConnection.close() doesn't close connection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 2.2
    • 2.2.1
    • None
    • None
    • CentOS, Python2.7, pymongo current release and master

    Description

      See: https://gist.github.com/92e4b1fd8485ab9008f7

      4 threads are run, each creating a ReplicaSetConnection to connect to a replica set with 2 secondaries and 1 master. Each hour, the threads reconnect by gc'ing the existing connection and creating a new one. mongodb shows the connection count rising, which causes an out of file-descriptor error after an extended period of time.

      Attachments

        Activity

          People

            bernie@mongodb.com Bernie Hackett
            adam.midvidy Adam Midvidy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: