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

Create a test that runs recovery to different points of time with schema operations

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.9, 4.0.2, 4.1.2, WT3.2.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Non-NYC 2018-07-16, Storage Engines 2018-07-30, Storage Engines 2018-08-13

      There is a class of potential bugs in WiredTiger where the content of the metadata table may be in an invalid state if a hard-crash occurs at just the wrong time. A possible way to add testing of those cases (which is generally difficult) would be to create a test that:

      • Does a schema operation (or set of schema operations).
      • Has logging enabled.
      • Do:
        while (log_file_not_empty) {
            ./wt list -v
            echo "verify the content of the output"
            ./wt log_truncate <MAX_LSN - 1> # I made this up - AFAIK it doesn't currently exist.
        }
        

      A set of interesting schema operations includes:

      • Creating a simple table.
      • Creating a table with column groups.
      • Creating an LSM tree with more than one chunk.
      • Doing a create then a rename operation.
      • Doing a create then a drop operation.

            Assignee:
            sue.loverso@mongodb.com Susan LoVerso
            Reporter:
            alexander.gorrod@mongodb.com Alexander Gorrod
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: