-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
1
-
2023-04-04 Bibbidi-Bobbidi-Boo
WT-9890 has added timestamps to datasets when running with the timestamp --hook. Every insertion into a data set gets a new timestamp, incremented. test_checkpoint01 fails with:
====================================================================== FAIL: test_checkpoint01.test_checkpoint_target.test_checkpoint_target -s 1 (table) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/ubuntu/wt/git/wt-9890-timestamp-hook/test/suite/wttest.py", line 386, in _callTestMethod method() File "/home/ubuntu/wt/git/wt-9890-timestamp-hook/test/suite/test_checkpoint01.py", line 252, in test_checkpoint_target self.check(self.uri + '1', ds1, 'UPDATE') File "/home/ubuntu/wt/git/wt-9890-timestamp-hook/test/suite/test_checkpoint01.py", line 218, in check self.assertEquals(cursor[ds.key(10)], value) AssertionError: 'ORIGINAL' != 'UPDATE' - ORIGINAL + UPDATE
The test creates a checkpoint, then creates a new checkpoint with the same name using the "target=" option to select given tables. Reading from the checkpoint, new values that should be in the checkpoint don't seem to be present.
This test is currently disabled via a @wttest.skip_for_hook("timestamp", ...)
annotation.
To reproduce, remove the skip_for_hook annotation in test_checkpoint01.py. Then run via:
$ cd build $ python3 ../test/suite/run.py -v 2 --hook timestamp test_checkpoint01.test_checkpoint_target.test_checkpoint_target