[SERVER-49747] Test that startup --repair deletes corrupt records Created: 20/Jul/20  Updated: 09/Sep/21  Resolved: 07/Aug/20

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

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

Issue Links:
Duplicate
duplicates SERVER-49687 Add flag for validate to repair data ... Closed
Sprint: Execution Team 2020-07-27, Execution Team 2020-08-10, Execution Team 2020-08-24
Participants:

 Description   

Startup --repair calls validate repair mode where documents that fail BSON validation are deleted. We need a jstest to check that --repair behaves correctly by deleting corrupt BSON records.

The existing code to delete corrupt BSON records during index rebuilds should be obsolete and can be deleted.

The existing code to delete corrupt BSON records during index rebuilds is still necessary for the case where collection files were salvaged and we rebuild indexes unconditionally.



 Comments   
Comment by Gregory Wlodarek [ 07/Aug/20 ]

shinyee.tan is going to be committing this work as part of SERVER-49687.

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