[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: |
|
||||||||
| 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 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 |