Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-4908

Add verbose failure messages during the metadata recovery phase.

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT3.2.1, 4.3.1, 4.2.0-rc5
    • Affects Version/s: None
    • Component/s: None
    • None
    • 5
    • Storage Engines 2019-07-19

      There are two passes in recovery. The first pass recovers the metadata, and then the second pass recovers the data in all the tables.

      The first pass sends in flags of 0 to wt_log_scan. There are some different code paths in wt_log_scan based on WT_LOGSCAN_RECOVER. In particular, many error paths give helpful messages during recovery where valid LSNs are expected. If there's an invalid LSN during the metadata recovery phase those helpful messages are not printed out and they should be.

      Possible solutions are:

      • Have the metadata-only call to wt_log_scan send in the WT_LOGSCAN_RECOVER flag. This is a simple change, but care must be taken to make sure there are no other undesired side effects of that flag during this phase of recovery.
      • If there are side effects, perhaps add another flag like WT_LOGSCAN_RECOVER_METADATA that avoids the side effects but still prints out helpful messages.

            Assignee:
            luke.pearson@mongodb.com Luke Pearson
            Reporter:
            sue.loverso@mongodb.com Susan LoVerso
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: