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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.6.6, 4.0.0-rc0
    • Replication, Storage
    • None
    • Fully Compatible
    • ALL
    • v3.6
    • Storage NYC 2018-05-07

    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

      Attachments

        Issue Links

          Activity

            People

              dianna.hohensee@mongodb.com Dianna Hohensee
              dianna.hohensee@mongodb.com Dianna Hohensee
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: