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

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

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: