Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-34829

Drop pending reaper must not delete the _dropPendingNamespaces entry until after the drop occurs

    • Fully Compatible
    • ALL
    • v3.6
    • Storage NYC 2018-05-07

      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

            Assignee:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Reporter:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: