[SERVER-28734] Recover WiredTiger data files when lacking metadata, but have _mdb_catalog data Created: 11/Apr/17  Updated: 14/Aug/18  Resolved: 08/Aug/18

Status: Closed
Project: Core Server
Component/s: WiredTiger
Affects Version/s: None
Fix Version/s: 4.0.2, 4.1.2

Type: New Feature Priority: Major - P3
Reporter: Asya Kamsky Assignee: Louis Williams
Resolution: Done Votes: 0
Labels: SEKB
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to SERVER-35629 Use WiredTiger salvage API for repair... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.0
Sprint: Storage NYC 2018-07-02, Storage NYC 2018-07-16, Storage NYC 2018-07-30, Storage NYC 2018-08-13
Participants:

 Description   

Occasionally someone might accidentally delete a metadata file - it would be nice to have a way to fetch all the bson from the data files that are now "orphaned".

This ticket will only support this behavior on Unix systems.



 Comments   
Comment by Githook User [ 14/Aug/18 ]

Author:

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

Message: SERVER-28734 Recover WiredTiger data files when lacking metadata, but have _mdb_catalog data

(cherry picked from commit 840cf50e5b071103fca33ff24e39333064c07f18)

Conflicts:
src/mongo/db/storage/kv/kv_storage_engine_test.cpp
src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.h
src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine_test.cpp
Branch: v4.0
https://github.com/mongodb/mongo/commit/9177af70286a6debabd97665b5720916488a99fc

Comment by Githook User [ 08/Aug/18 ]

Author:

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

Message: SERVER-28734 Recover WiredTiger data files when lacking metadata, but have _mdb_catalog data
Branch: master
https://github.com/mongodb/mongo/commit/840cf50e5b071103fca33ff24e39333064c07f18

Comment by Githook User [ 13/Jul/18 ]

Author:

{'username': 'xy24', 'name': 'Xiangyu Yao', 'email': 'xiangyu.yao@mongodb.com'}

Message: Revert "SERVER-28734 Provide a way to recover data files when lacking WiredTiger metadata, but have _mdb_catalog data"

This reverts commit ca2b902002110013479af34f0ce6dee9906d9ad9.
Branch: master
https://github.com/mongodb/mongo/commit/70973a0aaabaad1550376aa8913fd7fa46e7af72

Comment by Githook User [ 10/Jul/18 ]

Author:

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

Message: SERVER-28734 Provide a way to recover data files when lacking WiredTiger metadata, but have _mdb_catalog data
Branch: master
https://github.com/mongodb/mongo/commit/ca2b902002110013479af34f0ce6dee9906d9ad9

Comment by Louis Williams [ 28/Jun/18 ]

This ticket will allow WiredTiger.wt files that have orphaned a collection as a result of a salvage to rebuild the metadata for that collection during repair.

SERVER-35629 has been created to handle corrupt WiredTiger.wt metadata files.

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