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

Apply lookup by ShardId first in non config shards

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0-alpha0
    • None
    • Sharding
    • None
    • Fully Compatible
    • Sharding 2020-11-16
    • 0

    Description

      When Looking for shards cached in ShardRegistry, first apply lookup into non config cached shards, and, only if there is no shard with such ShardId, apply lookup into config shard. Doing this we will take benefit from the fact that _getData method only blocks when any shard structure change has occurred, while for looking for config shards we have to acquire a local mutex in any case.

      Attachments

        Activity

          People

            jaume.moragues@mongodb.com Jaume Moragues (Inactive)
            jaume.moragues@mongodb.com Jaume Moragues (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: