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

clear thread-local shardconnection cache in mongos after every operation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 2.6.0-rc1
    • Sharding
    • None
    • ALL

    Description

      See server.cpp::process().

      Currently we clear the shardconnection cache after every request that gets a response. This is now too conservative, since write ops are upconverted to use batch write commands and do not require the same connections stay open to enforce GLE. We should clear the thead-local cache after every operation.

      Impact is small in a cluster which isn't doing up/downconversion, but we want to be consistent and easy to reason about.

      Attachments

        Activity

          People

            greg_10gen Greg Studer
            greg_10gen Greg Studer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: