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

clear thread-local shardconnection cache in mongos after every operation

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.6.0-rc1
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • ALL

      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.

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

              Created:
              Updated:
              Resolved: