Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-49014

Add additional timestamping tests to the KVEngine test harness

    • Fully Compatible
    • Execution Team 2020-07-13, Execution Team 2020-07-27

      The KVEngine test harness allows us to create a single set of unit tests that runs on multiple storage engines.

      In order to have a test-driven development approach for adding timestamp support for Biggie, we should add additional unit tests to the harness to increase our test coverage for the storage engines.

      We can deterministically identify what the timestamps (oldest, stable, all durable) should be set to after performing a set of operations.
       

      A few simple examples of unit tests could be:

      1. Pinning the oldest timestamp (by keeping a read transaction open) and performing write operations at a later time. Opening a new read transaction on an older timestamp, prior to when the writes committed, we shouldn't see any of those changes.
      2. Rolling back to the last stable timestamp should remove any changes made since the last stable timestamp.
      3. When all open transactions commit, the all durable timestamp should be advanced when the final transaction is finished.

      Obviously, this isn't an extensive list and we should add more.

       
      I've attached a file of additional timestamp cases we can exercise made by daniel.gottlieb.

            Assignee:
            bynn.lee@mongodb.com Bynn Lee
            Reporter:
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: