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

Empty database directory will not be removed if KVEngine::dropIdent() does not drop the ident right away

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2020-11-16
    • 18

    Description

      SERVER-48882 made it so that when using directoryperdb, newly empty database directories will be removed. However, it is possible for WiredTigerKVEngine::dropIdent() to not actually drop the ident right away. If WiredTiger returns EBUSY, the ident drop will be queued to be dropped later. If this happens, the database directory will not be removed since the directory is not yet empty by the time the callback is run.

      A solution is to make KVEngine::dropIdent() optionally take a callback that will be run once the ident is actually dropped.

      Attachments

        Activity

          People

            gregory.noma@mongodb.com Gregory Noma
            gregory.noma@mongodb.com Gregory Noma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: