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

Run unit tests with timestamps disabled

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.6, 4.0.0-rc6, WT3.1.0, 4.1.1
    • Component/s: None
    • Labels:
      None
    • Story Points:
      2
    • Sprint:
      Storage Non-NYC 2018-06-18

      Description

      We currently do a build with configure --with-timestamp-size=0 as part of the wiredtiger-configure-combinations but don't run the Python test suite.

      Some tests currently fail:

      ERROR: test_prepare03.test_prepre03.test_prepare_cursor(table-row) (subunit.RemotedTestCase)
      test_prepare03.test_prepre03.test_prepare_cursor(table-row)
      ----------------------------------------------------------------------
      _StringException: Traceback (most recent call last):
        File "/mnt/fast/mjc/wt/src/wiredtiger-git/test/suite/test_prepare03.py", line 93, in test_prepare_cursor
          self.session.prepare_transaction("prepare_timestamp=2a")
      WiredTigerError: Operation not supported
       
       
      ======================================================================
      ERROR: test_las01.test_las01.test_las (subunit.RemotedTestCase)
      test_las01.test_las01.test_las
      ----------------------------------------------------------------------
      _StringException: Traceback (most recent call last):
        File "/mnt/fast/mjc/wt/src/wiredtiger-git/test/suite/test_las01.py", line 149, in test_las
          self.conn.set_timestamp('stable_timestamp=' + timestamp_str(1))
      WiredTigerError: Operation not supported
       
      ...
      

      Those tests should be skipped when timestamps are disabled, we have wiredtiger.timestamp_build() to check that. We should also periodically run the unit test suite with that build to prevent regressions.

        Attachments

          Activity

            People

            Assignee:
            neha.khatri Neha Khatri
            Reporter:
            michael.cahill Michael Cahill
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: