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

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.7.0
    • Component/s: Sharding
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      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

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

                Dates

                Created:
                Updated:
                Resolved: