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

Reduce time holding the chunks lock during commit of `mergeAllChunksOnShard`

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • None
    • Sharding
    • None
    • Fully Compatible
    • Sharding EMEA 2023-02-20, Sharding EMEA 2023-03-06

    Description

      The discovery of mergeable chunks for a specific shard is currently done while holding the chunks lock.

      Purpose of this ticket is to reduce the amount of time spent under that lock. A solution may be the following:

      • Identify mergeable chunks before holding the lock
      • Take the lock
      • Double check preconditions still hold

      Attachments

        Activity

          People

            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: