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

Add more test cases for metadata salvage

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.2.1, WT3.2.1, 4.3.1
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • 3
    • Storage Engines 2019-08-12

      There appear to be some cases that the original metadata salvage code does not test (and may have bugs). This ticket addresses missing test cases. Any issues discovered by adding and running these new cases should get new tickets.

      Some known test cases that need to be added are:
      1. Missing log/journal file. Although this is tested in the python unit test test_txn19.py it is possible that the detection of that missing file in the non-salvage case does not end up returning WT_TRY_SALVAGE.
      2. Zero-length WiredTiger.turtle file.

      (I don't think we can recover from/salvage a zero-length WiredTiger.wt file. Salvage of that file will not find any data in the file to recover. There is nothing to salvage.)

            Assignee:
            donald.anderson@mongodb.com Donald Anderson
            Reporter:
            sue.loverso@mongodb.com Susan LoVerso
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: