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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2020-11-16
    • 18

      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.

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

              Created:
              Updated:
              Resolved: