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

flushing connection pool can leak connections

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.0.6, 2.1.1
    • Fix Version/s: 2.1.2
    • Component/s: Sharding, Stability
    • Labels:
      None
    • Operating System:
      ALL

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            spencer Spencer Brody (Inactive)
            Reporter:
            spencer Spencer Brody (Inactive)
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: