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

Do not crash when index inconsistencies are detected in WiredTiger

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.29
    • Affects Version/s: None
    • Component/s: None
    • Storage Execution
    • Fully Compatible
    • ALL
    • v7.0, v6.0, v5.0
    • Execution Team 2023-06-12, Execution EMEA Team 2023-06-26
    • 0

      We currently terminate the process in multiple locations when we detect index inconsitencies:

      Crashing the process is quite dangerous for many reasons, and should only be done as a last resort. In all of these locations, we should evaluate if we can safely throw an exception and write to the health log. For our testing we can still crash. Additionally, if we were to encounter any of these a key out-of-order issue in validate or dbCheck when scanning an index, this would terminate the process, and would not be particularly useful for understanding the extent of any data corruption.

      Instead, we should do what we did in SERVER-71950 and log a warning, write to the health log, and throw an exception. Like what we're doing in SERVER-74793 and SERVER-76231, we should also ensure dbCheck and validate do not fail when they encounter this inconsistency.

            Assignee:
            yujin.kang@mongodb.com Yujin Kang Park
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: