As part of the work to make repair in MongoDB more robust, we will add a new top level entry point to WiredTiger that will allow for salvaging corrupted metadata files where possible. The API will be called wiredtiger_salvage, and should be called after WiredTiger has returned a new WT_DATA_CORRUPTION error return. It should attempt to salvage both WiredTiger.wt and WiredTiger.turtle files.
This will allow MongoDB to continue opening in repair mode, rather than failing, so users can read some of their data rather than none.
If the salvage succeeds, WiredTiger will not be required to run recovery or apply log files.
- causes
-
WT-4274 Fix memory leak in wt4156_metadata_salvage test
- Closed
-
WT-4283 Restore WT_ERROR and use a corrupt flag
- Closed
-
WT-4292 Add call to testutil_cleanup to avoid memory leak
- Closed
- is depended on by
-
SERVER-35629 Use WiredTiger salvage API for repairing metadata files
- Closed