[SERVER-66866] The range deleter waits between batches while holding the collection IX lock Created: 31/May/22 Updated: 29/Oct/23 Resolved: 31/May/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 5.0.10, 6.0.0-rc10, 6.1.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kaloian Manassiev | Assignee: | Kaloian Manassiev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| Backport Requested: |
v6.0, v5.0
|
||||
| Sprint: | Sharding EMEA 2022-06-13 | ||||
| Participants: | |||||
| Description |
|
In order to obey the rangeDeleterBatchDelayMS parameter, the range deleter sleeps between batches. However, it is doing so while under the collection lock. This means concurrent migrations (or rather anything that needs to take a strong lock) will block for up to that amount of time (default of 20ms). Instead, the wait should be happening after the lock is dropped. |
| Comments |
| Comment by Githook User [ 10/Jun/22 ] |
|
Author: {'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}Message: (cherry picked from commit cec61a460e69c47e1bf0e455214f776c62053f53) |
| Comment by Githook User [ 04/Jun/22 ] |
|
Author: {'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}Message: (cherry picked from commit cec61a460e69c47e1bf0e455214f776c62053f53) |
| Comment by Githook User [ 31/May/22 ] |
|
Author: {'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}Message: |