[SERVER-35782] Repair should move aside unsalvageable data files and create empty ones in their place Created: 25/Jun/18  Updated: 29/Oct/23  Resolved: 23/Aug/18

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.0.3, 4.1.3

Type: Task Priority: Major - P3
Reporter: Louis Williams Assignee: Louis Williams
Resolution: Fixed Votes: 0
Labels: nyc
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to SERVER-60014 provide single utility library for fs... Backlog
Backwards Compatibility: Minor Change
Backport Requested:
v4.0
Sprint: Storage NYC 2018-07-16, Storage NYC 2018-07-30, Storage NYC 2018-08-27
Participants:

 Description   

If a collection is unsalvageable by WiredTiger, the data file should be moved aside (potentially to a .corrupt file name), and a new, empty collection should be created in its place.

Currently, repair fails if a collection is unsalvageable. This behavior should be changed so that the database can be started normally even if collections cannot be salvaged.



 Comments   
Comment by Githook User [ 18/Sep/18 ]

Author:

{'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}

Message: SERVER-35782 Repair should move aside unsalvagable data files and create empty ones in their place.

(cherry picked from commit 60ed4a2dbfa1a80c9bb8da87a6d2fa55b55dffa4)

Conflicts:
src/mongo/db/repair_database.cpp
Branch: v4.0
https://github.com/mongodb/mongo/commit/39494254ce02e98da0840d6ab8f6a079a284cd2f

Comment by Githook User [ 23/Aug/18 ]

Author:

{'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}

Message: SERVER-35782 Repair should move aside unsalvagable data files and create empty ones in their place.
Branch: master
https://github.com/mongodb/mongo/commit/60ed4a2dbfa1a80c9bb8da87a6d2fa55b55dffa4

Generated at Thu Feb 08 04:40:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.