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.
kvnemesis: properly skip validation for rolled-back locking reads in …
…weak-isolation transactions Previously, cockroachdb#126417 attempted to skip validation for rolled-back locking reads that tolerate write skew. However, it depended on the validator's `observeLocking` filter in `checkAtomicCommitted` to detect if a read tolerates write skew. However, that filter is set correctly only while processing ops. This patch adds a field to `observedRead` to mark it as tolerating write skew. The flag is set in `processOp` and used later in `checkAtomicCommitted`. Fixes: cockroachdb#128373 Release note: None
- Loading branch information
1 parent
2b4ad1c
commit 414564f
Showing
1 changed file
with
22 additions
and
18 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