-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.2.21, 4.0.6
-
Component/s: WiredTiger
-
ALL
-
- Call db.fsyncLock()
- Take FS snapshot shortly after without syncing to disk
- Restore snapshot
- WiredTiger.backup is zero bytes
-
Storage Engines 2019-03-11
After calling the db.fsyncLock() command and it returning, the WiredTiger.backup file is created. After waiting 20 seconds I make a Google Cloud disk snapshot. Restoring from this snapshot shows that WiredTiger.backup is zero bytes. This causes MongoDB to not be able to restore correctly on startup and there being no databases. Adding a manual call to the Linux sync command before making the snapshot remedies this. It seems like MongoDB should be syncing WiredTiger.backup to disk before the db.fsyncLock() command returns.
Ubuntu 18.04
- duplicates
-
WT-4615 Sync backup file before returning backup cursor
- Closed