[SERVER-49687] Add flag for validate to repair data in standalone mode Created: 17/Jul/20  Updated: 29/Oct/23  Resolved: 07/Aug/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.7.0

Type: Improvement Priority: Major - P3
Reporter: Louis Williams Assignee: Shin Yee Tan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
is duplicated by SERVER-49747 Test that startup --repair deletes co... Closed
Related
related to SERVER-50205 validate_repair_mode.js and repair_co... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2020-08-10, Execution Team 2020-08-24
Participants:
Linked BF Score: 95

 Description   

From the design:

The CollectionValidation::validate() function will accept a RepairData flag to allow it to fix certain problems that do not require a full index rebuild. This new “repair mode” will be used by startup repair in repairCollections to avoid rebuilding indexes in certain data inconsistency cases (SERVER-49340). 

This new mode will also be accessible via running the validate command in standalone mode with a new parameter to the validate user command, _

{repair: true}

_. This mode is incompatible with _

{background: true}

_ and _

{enforceFastCounts: true}

_ and requires an X collection lock.



 Comments   
Comment by Githook User [ 11/Aug/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-49687 disable repair_corrupt_document.js under windows
Branch: master
https://github.com/mongodb/mongo/commit/c602f35664ce98582f03cedfa142ce901f223224

Comment by Githook User [ 09/Aug/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-49687 disable validate_during_repair under windows
Branch: master
https://github.com/mongodb/mongo/commit/2f4aecb91daae89c7f8eabe24ba1682ff1088186

Comment by Githook User [ 08/Aug/20 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-49687 Fix an off-by-one memory copy error in collection_impl.cpp
Branch: master
https://github.com/mongodb/mongo/commit/b3fdeba28287551ec70156eba7cc318cadbab23e

Comment by Githook User [ 08/Aug/20 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-49687 Fix a Windows compile error in collection_impl.cpp

... due to VC++ not supporting initialising stack-arrays with dynamic
size.
Branch: master
https://github.com/mongodb/mongo/commit/ee34a14ce8426b4a38615c09aaac4e4964d529e6

Comment by Githook User [ 07/Aug/20 ]

Author:

{'name': 'Shin Yee Tan', 'email': 'shinyee.tan@mongodb.com'}

Message: SERVER-49687 Add flag for validate to repair data in standalone mode
Branch: master
https://github.com/mongodb/mongo/commit/ca1d644a6f31477b247fa79b6345528aba165281

Generated at Thu Feb 08 05:20:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.