Details
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