-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
40607: storage: fix flake in TestTxnRecordLifecycleTransitions r=nvanbenschoten a=nvanbenschoten Fixes #40537. The test was specifically not restarting transactions at the push timestamp (for the outdated epoch) cases, but the broken subtest `TestTxnRecordLifecycleTransitions/push_transaction_(abort)_after_end_transaction_(stage)_with_outdated_epoch` was expecting its timestamp to be equal to the push timestamp. The second commit ensures that we're not accidentally relying on the fact that `runTs` was usually one logical tick above `txn.Timestamp` by manually incrementing the clock. With this change, the flake fixed in the previous commit fails reliably. The `s/clone.Restart(-1, 0, now.Add(0, 1))/clone.Restart(-1, 0, now)/` is just cleanup. Co-authored-by: Nathan VanBenschoten <nvanbenschoten@gmail.com>
- Loading branch information
Showing
1 changed file
with
15 additions
and
13 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