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

Optimize ScopedShardVersionCriticalSection in order to avoid convoy on SSV after a shardVersion change

    • Fully Compatible
    • Sharding 2020-05-18, Sharding 2020-06-01

      Optimize ScopedShardVersionCriticalSection class with respect to multi-thread initialization. In particular in the case where a lot of threads try to concurrently instantiate this object.

      The idea is to avoid entering in the critical session if it is not strictly needed.

       
      Modify onShardVersionMismatch in order to:

      Update forceShardFilteringMetadataRefresh:

      • Remove forceRefreshFromThisThread flag
      • Remove unused hasAdditionalCatalogCacheForFiltering part

            Assignee:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: