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

Reduce contention on ShardingState::_mutex for find workloads

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.6.0-rc4
    • Component/s: Querying, Sharding
    • Labels:
      None
    • Sharding
    • ALL
    • Sharding 2017-12-04

      The find code path currently calls CollectionShardingState::get at least 4 times for preparing a single query.

      This causes contention on ShardingState::_mutex, which eventually gets called by that function.

      Through some code reshuffling we should be able to remove two of these calls.

            Assignee:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: