[SERVER-70831] Execute the kDropCollection phase of dropCollection under a RecoverableCriticalSection Created: 25/Oct/22  Updated: 29/Oct/23  Resolved: 23/Feb/23

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

Type: Task Priority: Major - P3
Reporter: Paolo Polato Assignee: Sergi Mateo Bellido
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-68930 Store placement changes into config.p... Closed
is depended on by SERVER-70922 Modify drop collection to clear the s... Closed
Problem/Incident
causes SERVER-74348 New parameter to support views on the... Closed
Related
related to SERVER-74300 Investigation: understand why the acq... Open
Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2022-11-14, Sharding EMEA 2022-11-28, Sharding EMEA 2022-12-12, Sharding EMEA 2022-12-26, Sharding EMEA 2023-01-09, Sharding EMEA 2023-01-23, Sharding EMEA 2023-02-06, Sharding EMEA 2023-02-20, Sharding EMEA 2023-03-06
Participants:
Linked BF Score: 153

 Description   

DropCollectionCoordinator is currently deleting the collection metadata and data without explicitly blocking any user write operation on the namespace. While this behaviour is aligned with the isolation guarantees offered by the DDL, it may lead to an inconsistent sequence of events in the primary shard oplog.

The addition of a RecoverableCriticalSection protecting the execution of the whole kDropCollection phase could be a way to solve this problem.



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

Author:

{'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}

Message: SERVER-70831 Relying on the critical section for dropCollection
Branch: master
https://github.com/mongodb/mongo/commit/acd63757fc74f12ac38632e523aace1cabc508a6

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