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

Sometimes collection data file is not removed even though collection is dropped

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.1, 3.5.1
    • Affects Version/s: 3.2.10
    • Component/s: WiredTiger
    • None
    • Fully Compatible
    • ALL
    • v3.2
    • Hide
      $ /usr/bin/mongod --dbpath=/data/test/mongodb --replSet=shard01 --directoryperdb
      
      > rs.initialize()
      > use test
      > db.coll.insert({dummy:1})
      
      $ Quit mongod with Ctrl+C
      $ Restart mongod with the same options (above)
      
      > use test
      > db.coll.drop()
      
      $ ls -alh ${MONGODB_DATA}/test/
      -rw-r--r-- 1 root root  16K Nov  2 01:44 collection-11--7504200015463324137.wt
      
      Show
      $ /usr/bin/mongod --dbpath=/data/test/mongodb --replSet=shard01 --directoryperdb > rs.initialize() > use test > db.coll.insert({dummy:1}) $ Quit mongod with Ctrl+C $ Restart mongod with the same options (above) > use test > db.coll.drop() $ ls -alh ${MONGODB_DATA}/test/ -rw-r--r-- 1 root root 16K Nov 2 01:44 collection-11--7504200015463324137.wt
    • Storage 2016-12-12
    • 0

      Once mongod is restarted with Ctrl+c,
      Collection data file is not removed when collection is dropped.
      But index file is removed.

            Assignee:
            geert.bosch@mongodb.com Geert Bosch
            Reporter:
            sunguck.lee@gmail.com 아나 하리
            Votes:
            0 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved: