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

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.7.0
    • Sharding
    • Fully Compatible
    • Sharding 2020-05-18, Sharding 2020-06-01

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: