forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
engine/metamorphic: Add engine restarts, compare across runs`
This PR builds on top of cockroachdb#44458 (all commits before the last one are from that PR). It adds two things: one, it ensures that whenever successive engine types are tested, it does a comparison for matching outputs. This will ensure CI will fail if any change down the line causes an observed difference in behaviour between rocksdb and pebble. It also adds more MVCC operations that would be useful to test, such as MVCCFindSplitKey, MVCCDeleteRange, MVCCClearTimeRange, MVCCConditionalPut, etc. Furthermore, it adds a new kind of operation: restart. Restarts are special in that they're added after the specified n number of runs have happened; so a test run with 3 specified engine types (so 2 restarts), and n = 10000 will have 3 * 10000 = 30000 operations. A restart closes all open objects, then closes the engine, and starts up the next engine in the specified engine sequence. This, combined with the aforementioned checking functionality across different engine runs, lets us test for bidirectional compatibility across different engines. Fixes cockroachdb#43762 . Release note: None.
- Loading branch information
Showing
4 changed files
with
562 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.