[SERVER-65016] Remove range deletions as part of `dropCollection` Created: 29/Mar/22  Updated: 29/Oct/23  Resolved: 23/Sep/22

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

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

Issue Links:
Problem/Incident
causes SERVER-70034 Fix potential deadlock on step down Closed
causes SERVER-70873 Stepdown during drop collection can l... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2022-10-03
Participants:

 Description   

When a sharded collection is dropped, the range-deleter is lazily discovering that some range deletions may refer an older incarnation of such collection (dropped or dropped and recreated).

 

While de-queueing already scheduled range deletion tasks that may not be trivial, a simple optimization could be to delete persistent range deletion task documents so that:

  • On step-up, "stale" range deletion tasks are not getting scheduled
  • Users and technical services don't get fooled by the presence of wrong range deletion tasks
  • It would be consistent with rename that already drops "stale" range deletion tasks both for source and target collection

This change is safe because the range-releter is already handling the absence of a document for a scheduled range deletion.



 Comments   
Comment by Githook User [ 27/Sep/22 ]

Author:

{'name': 'Silvia Surroca', 'email': 'silvia.surroca@mongodb.com', 'username': 'silviasuhu'}

Message: SERVER-65016 Remove range deletions as part of `dropCollection`
Branch: master
https://github.com/mongodb/mongo/commit/cb8b9029c089316a198b5f98a74ae21fc1f18299

Comment by Githook User [ 23/Sep/22 ]

Author:

{'name': 'Silvia Surroca', 'email': 'silvia.surroca@mongodb.com', 'username': 'silviasuhu'}

Message: SERVER-65016 Remove range deletions as part of `dropCollection`
Branch: master
https://github.com/mongodb/mongo/commit/774c0ba3616556db2d034675e5979c05611d43d9

Comment by Cris Insignares Cuello [ 26/May/22 ]

Removed from QWs and added to PM-2849

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