[SERVER-12177] Empty directories are left after repair Created: 20/Dec/13  Updated: 06/Dec/22  Resolved: 14/Sep/18

Status: Closed
Project: Core Server
Component/s: Admin, MMAPv1, Storage
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Cory Mintz Assignee: Backlog - Storage Execution Team
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Storage Execution
Operating System: ALL
Participants:

 Description   

Example where an empty folder, named local, is left behind. It seems like for each database there is a temp directory created with the same name.

corymintz: /tmp# mkdir a
corymintz: /tmp# mongod --fork --dbpath a/ --logpath mongod.log --nojournal --port 30000
about to fork child process, waiting until server is ready for connections.
forked process: 15362
all output going to: /private/tmp/mongod.log
child process started successfully, parent exiting
corymintz: /tmp# kill 15362
corymintz: /tmp# mongod --repair --dbpath a/ --logpath repair.log --nojournal
all output going to: /private/tmp/repair.log
corymintz: /tmp# ls -alh a/
total 163840
drwxr-xr-x   6 corymintz  wheel   204B Dec 20 09:09 .
drwxrwxrwt  16 root       wheel   544B Dec 20 09:09 ..
drwxr-xr-x   2 corymintz  wheel    68B Dec 20 09:09 local
-rw-------   1 corymintz  wheel    64M Dec 20 09:09 local.0
-rw-------   1 corymintz  wheel    16M Dec 20 09:09 local.ns
-rwxr-xr-x   1 corymintz  wheel     0B Dec 20 09:09 mongod.lock
corymintz: /tmp# 

If the directoryperdb options is used, no artifacts are left.


Generated at Thu Feb 08 03:27:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.