Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-49747

Test that startup --repair deletes corrupt records

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Execution Team 2020-07-27, Execution Team 2020-08-10, Execution Team 2020-08-24

    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.

      Attachments

        Activity

          People

            shinyee.tan@mongodb.com Shin Yee Tan
            shinyee.tan@mongodb.com Shin Yee Tan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: