Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6133

flushing connection pool can leak connections

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.2
    • Affects Version/s: 2.0.6, 2.1.1
    • Component/s: Sharding, Stability
    • Labels:
      None
    • ALL

      In client/connpool.cpp, the PoolForHost::flush() function takes every connection out of the pool, calls isMaster on it, then puts it back into the pool. If isMaster throws an exception then that connection and any other connections that have already been removed from the pool will be leaked. We should catch the exception and delete the connection.

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: