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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 4.0.3, 4.2.0
    • 4.2.4, 4.0.17
    • Sharding
    • None
    • Fully Compatible
    • v4.0
    • Sharding 2020-03-09

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: