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

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding EMEA 2023-02-20, Sharding EMEA 2023-03-06
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

            Assignee:
            Pierlauro Sciarelli
            Reporter:
            Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: