summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/test/suite/test_timestamp04.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/test/suite/test_timestamp04.py')
-rw-r--r--src/third_party/wiredtiger/test/suite/test_timestamp04.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/third_party/wiredtiger/test/suite/test_timestamp04.py b/src/third_party/wiredtiger/test/suite/test_timestamp04.py
index acbad7e02a4..9e0e4a0cec0 100644
--- a/src/third_party/wiredtiger/test/suite/test_timestamp04.py
+++ b/src/third_party/wiredtiger/test/suite/test_timestamp04.py
@@ -78,7 +78,8 @@ class test_timestamp04(wttest.WiredTigerTestCase, suite_subprocess):
# Search for the expected items as well as iterating.
for k, v in expected.items():
if missing == False:
- self.assertEqual(cur[k], v, "for key " + str(k))
+ self.assertEqual(cur[k], v, "for key " + str(k) +
+ " expected " + str(v) + ", got " + str(cur[k]))
else:
cur.set_key(k)
if self.empty:
@@ -162,7 +163,11 @@ class test_timestamp04(wttest.WiredTigerTestCase, suite_subprocess):
# Roll back half timestamps.
stable_ts = timestamp_str(key_range // 2)
self.conn.set_timestamp('stable_timestamp=' + stable_ts)
+
+ # We're about to test rollback-to-stable which requires a checkpoint to which we can roll back.
+ self.session.checkpoint()
self.conn.rollback_to_stable()
+
stat_cursor = self.session.open_cursor('statistics:', None, None)
calls = stat_cursor[stat.conn.txn_rollback_to_stable][2]
upd_aborted = (stat_cursor[stat.conn.txn_rollback_upd_aborted][2] +