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

directoryperdb with volume mount inside dbpath trips assertion failure during dropDatabase()

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.2.1
    • Component/s: None
    • None
    • Environment:
      Linux
    • ALL

      The documentation for --directoryperdb seems to suggest that this is supported.

      $ ps -C mongod -f | grep directoryperdb
      ubuntu   15776     1  0 Dec20 ?        00:00:07 mongod --fork --logpath mongod.log --directoryperdb
      $ mount | grep /data/db
      /dev/xvdg on /data/db/foo type ext4 (rw,noatime)
      $ mongo
      MongoDB shell version: 2.2.1
      connecting to: test
      > use foo
      switched to db foo
      > db.c.insert({})
      > db.dropDatabase()
      {
      	"errmsg" : "exception: delete data files with a directoryperdb caught exception exception: boost::filesystem::remove: Device or resource busy: \"/data/db/foo\"",
      	"code" : 14043,
      	"ok" : 0
      }
      > 
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            rassi J Rassi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: