-
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.
34733: storage: regression test leaked intents on bounced proposal r=petermattis a=tbg This adds the test promised in the PR below. When a transaction committed but the commit applied at an invalid lease applied index, we'd formerly (due to a recent change) leak the intents as committed which would cause dirty writes. Adapt an existing test to roughly do the following to prevent regression. The test (now) sets up two ranges and lets a transaction (anchored on the left) write to both of them. It then starts readers for both keys written by the txn and waits for them to enter the txn wait queue. Next, it lets the txn attempt to commit but injects a forced error below Raft. The bugs would formerly notify the txn wait queue that the transaction had committed (not true) and that its external intent (i.e. the one on the right range) could be resolved (not true). Verify that neither occurs. See #34659. Release note: None Co-authored-by: Tobias Schottdorf <[email protected]>
- Loading branch information
Showing
7 changed files
with
96 additions
and
51 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
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
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
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
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
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
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