[SERVER-34829] Drop pending reaper must not delete the _dropPendingNamespaces entry until after the drop occurs Created: 03/May/18  Updated: 29/Oct/23  Resolved: 07/May/18

Status: Closed
Project: Core Server
Component/s: Replication, Storage
Affects Version/s: None
Fix Version/s: 3.6.6, 4.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Dianna Hohensee (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-33244 Make all lock acquisitions for transa... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.6
Sprint: Storage NYC 2018-05-07
Participants:

 Description   

Otherwise waiters on the drop will proceed before the drop finishes. Waiters call getEarliestDropOpTime() to determine until what optime they should wait, and getEarliestDropOpTime() looks at _dropPendingNamespaces to determine that.

getEarliestDropOpTime() can currently see that _dropPendingNamespaces is empty, when there are still pending-drops to be completed, and return boost::none – or some misinformed answer --, which tells the caller that there's nothing for which to wait.

Discovered while testing SERVER-33244's patch on no_implicit_collection_creation_in_txn.js



 Comments   
Comment by Githook User [ 04/Jun/18 ]

Author:

{'username': 'DiannaHohensee', 'name': 'Dianna Hohensee', 'email': 'dianna.hohensee@10gen.com'}

Message: SERVER-34829 Drop pending reaper must not delete the _dropPendingNamespaces entry until after the drop occurs

(cherry picked from commit 8a41a08818c38c4f79a1c4ba2dfe453e8e547dd0)
Branch: v3.6
https://github.com/mongodb/mongo/commit/f0cc8efd1023091deaf7005cad1e812b7343c413

Comment by Githook User [ 07/May/18 ]

Author:

{'email': 'dianna.hohensee@10gen.com', 'name': 'Dianna Hohensee', 'username': 'DiannaHohensee'}

Message: SERVER-34829 Drop pending reaper must not delete the _dropPendingNamespaces entry until after the drop occurs
Branch: master
https://github.com/mongodb/mongo/commit/8a41a08818c38c4f79a1c4ba2dfe453e8e547dd0

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