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

Move checkShardingIndex outside shardCollection's read critical section on the primary shard

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.2.4, 4.0.17
    • Affects Version/s: 4.0.3, 4.2.0
    • Component/s: Sharding
    • None
    • Fully Compatible
    • v4.0
    • Sharding 2020-03-09

      The shardCollection implementation on the primary shard contains at least one task, which performs collection scan while under the critical section, namely checkShardingIndex. This can cause a significant period of unavailability for a large collection.

      This ticket is to inspect all the work which is performed under the critical section of shardCollection and ensure that it is held for the minimum time possible.

            Assignee:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Reporter:
            ritesh.saigal@mongodb.com Ritesh Saigal
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: