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

Apply lookup by ShardId first in non config shards

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0-alpha0
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding 2020-11-16
    • 0

      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.

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

              Created:
              Updated:
              Resolved: