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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.2.10
    • Fix Version/s: 3.4.1, 3.5.1
    • Component/s: WiredTiger
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:
    • Backport Requested:
      v3.2
    • Steps To Reproduce:
      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
    • Sprint:
      Storage 2016-12-12
    • Case:
    • Linked BF Score:
      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

              • Votes:
                0 Vote for this issue
                Watchers:
                17 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: