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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.2.10
    • 3.4.1, 3.5.1
    • 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

    Description

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: