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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              아나 하리
              Votes:
              0 Vote for this issue
              Watchers:
              16 Start watching this issue

                Created:
                Updated:
                Resolved: