[SERVER-73974] Reduce time holding the chunks lock during commit of `mergeAllChunksOnShard` Created: 14/Feb/23  Updated: 29/Oct/23  Resolved: 27/Feb/23

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Pierlauro Sciarelli Assignee: Pierlauro Sciarelli
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2023-02-20, Sharding EMEA 2023-03-06
Participants:

 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


 Comments   
Comment by Githook User [ 27/Feb/23 ]

Author:

{'name': 'Pierlauro Sciarelli', 'email': 'pierlauro.sciarelli@mongodb.com', 'username': 'pierlauro'}

Message: SERVER-73974 Reduce time holding the chunks lock during commit of `mergeAllChunksOnShard`
Branch: master
https://github.com/mongodb/mongo/commit/0c88e607afb1acbba95f8b379628b6711acd0aab

Generated at Thu Feb 08 06:26:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.