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

WiredTiger journal files accumulate with each server start/stop

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.10, 3.5.8
    • Affects Version/s: 3.4.3
    • Component/s: Storage, WiredTiger
    • None
    • Fully Compatible
    • ALL
    • v3.4
    • Storage 2017-05-29

      If I start MongoDB 3.4.3, wait a few seconds, ctrl-c out, and repeat the journal directory adds a new WiredTigerLog.* file for every restart.

      i.e.

      /tmp/foo# ls -alh journal/
      total 201M
      drwxrwxr-x 2 corymintz corymintz 4.0K Apr  5 13:46 .
      drwxrwxr-x 4 corymintz corymintz 4.0K Apr  5 13:46 ..
      -rw-rw-r-- 1 corymintz corymintz  23K Apr  5 13:46 WiredTigerLog.0000000001
      -rw-rw-r-- 1 corymintz corymintz 6.3K Apr  5 13:46 WiredTigerLog.0000000002
      -rw-rw-r-- 1 corymintz corymintz 6.3K Apr  5 13:46 WiredTigerLog.0000000003
      -rw-rw-r-- 1 corymintz corymintz 6.3K Apr  5 13:46 WiredTigerLog.0000000004
      -rw-rw-r-- 1 corymintz corymintz 6.3K Apr  5 13:46 WiredTigerLog.0000000005
      -rw-rw-r-- 1 corymintz corymintz 6.3K Apr  5 13:46 WiredTigerLog.0000000006
      -rw-rw-r-- 1 corymintz corymintz 6.3K Apr  5 13:46 WiredTigerLog.0000000007
      -rw-rw-r-- 1 corymintz corymintz 100M Apr  5 13:46 WiredTigerPreplog.0000000001
      -rw-rw-r-- 1 corymintz corymintz 100M Apr  5 13:46 WiredTigerPreplog.0000000002
      

      Following the exact same procedure with MongoDB 3.4.2, the old files are cleaned up

      /tmp/foo# ls -alh journal/
      total 201M
      drwxrwxr-x 2 corymintz corymintz 4.0K Apr  5 14:09 .
      drwxrwxr-x 4 corymintz corymintz 4.0K Apr  5 14:09 ..
      -rw-rw-r-- 1 corymintz corymintz 4.3K Apr  5 14:09 WiredTigerLog.0000000007
      -rw-rw-r-- 1 corymintz corymintz 100M Apr  5 14:09 WiredTigerPreplog.0000000001
      -rw-rw-r-- 1 corymintz corymintz 100M Apr  5 14:09 WiredTigerPreplog.0000000002
      

            Assignee:
            sue.loverso@mongodb.com Susan LoVerso
            Reporter:
            cory.mintz@mongodb.com Cory Mintz
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: