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

Create a python test that validates the new version check performed on start

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: None
    • Labels:
      None
    • Story Points:
      5

      Description

      In WT-5630 we added functionality to wiredtiger that prevents it starting on too low of a version, I think it would be worth creating a python test that validates all three scenarios and errors returned within the new function __turtle_validate_version in meta_turtle.c

      The three scenarios are:
      1. A corrupt turtle file, or turtle file missing the version string.
      2. An version string that isn't parse able.
      3. Finally a version string that isn't compatible with the current WiredTiger version.

      The python test will need to open a database, close it. Replace the turtle file with the corrupted / modified version. Then re-open the database and expect the error messages defined in __turtle_validate_version.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-storage-engines Backlog - Storage Engines Team
              Reporter:
              luke.pearson Luke Pearson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: