[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:
Backports
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: SERVER-66866 Make the range deleter not sleep under collection lock

(cherry picked from commit cec61a460e69c47e1bf0e455214f776c62053f53)
Branch: v6.0
https://github.com/mongodb/mongo/commit/1937d9457f2f04ca865e983fdce5db6d014f1f73

Comment by Githook User [ 04/Jun/22 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-66866 Make the range deleter not sleep under collection lock

(cherry picked from commit cec61a460e69c47e1bf0e455214f776c62053f53)
Branch: v5.0
https://github.com/mongodb/mongo/commit/bd0d8c22a35afbbc145a850900df0ddf56da597f

Comment by Githook User [ 31/May/22 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-66866 Make the range deleter not sleep under collection lock
Branch: master
https://github.com/mongodb/mongo/commit/cec61a460e69c47e1bf0e455214f776c62053f53

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