flushing connection pool can leak connections

XMLWordPrintableJSON

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

      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 Brody (Inactive)
            Reporter:
            Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: