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

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 4.0.3, 4.2.0
    • Fix Version/s: 4.2.4, 4.0.17
    • Component/s: Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v4.0
    • Sprint:
      Sharding 2020-03-09
    • Case:

      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

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

                Dates

                Created:
                Updated:
                Resolved: