[SERVER-29251] Two Phase Drops: add NamespaceString support for drop-pending collections Created: 17/May/17  Updated: 30/Oct/23  Resolved: 18/May/17

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.5.8

Type: Task Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
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-29272 Two Phase Drops: listCollections shou... Closed
is depended on by SERVER-29273 Two Phase Drops: add list of drop-pen... Closed
is depended on by SERVER-29278 Two Phase Drops: scans on system.name... Closed
is depended on by SERVER-29279 Two Phase Drops: dbHash needs to skip... Closed
is depended on by SERVER-29357 Two-Phase Drops: Document validators ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 2017-05-29
Participants:

 Description   

In replication mode, when a collection is being prepared for a 2-phase drop, we rename the collection to a non-user accessible namespace while we wait for the drop to be confirmed by the rest of the replica set. The proposed namespace for the collection while the drop is pending is:

Original namespace:
<db>.<coll>

Drop-pending namespace:
<db>.system.drop.<optime>.<coll>

<optime> is the optime of the oplog entry generated for the collection drop that will be propagated to the rest of the replica set and is formatted as follows:
<timestamp seconds>i<timestamp increment>t<optime term>

<coll> is appended to the drop-pending namespace for purely informational purposes only. If the generated namespace exceeds the the maximum namespace length, <coll> may be truncated as necessary.

Once the collection has been renamed to a drop-pending namespace, it will not be eligible for initial sync or visible to listCollections requests without special flags.



 Comments   
Comment by Githook User [ 18/May/17 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-29251 add NamespaceString support for drop-pending collection namespaces
Branch: master
https://github.com/mongodb/mongo/commit/4e6736dd8def2d0643a657d1900c38e491592abb

Generated at Thu Feb 08 04:20:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.