-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
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