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

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

    • Type: Icon: Technical Debt Technical Debt
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • 5

      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. (done as part of WT-6004)
      2. An version string that isn't parse able. (done as part of WT-6004)
      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.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            luke.pearson@mongodb.com Luke Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: