Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
126417: kvnemesis: skip validation for rolled-back locking reads in weak-isolation transactions r=arulajmani a=miraradeva Currently, for weak-isolation-level transactions, kvnemesis does validation only for locking reads; such transactions ensure the locks are held until the transactions commit. However, this is not the case if a locking read is rolled back by a savepoint. In this case, the lock is not released eagerly, but it's also not guaranteed to be held; the lock may be released if the transaction is pushed. Once the read is no longer considered locking, weaker isolations levels do not require that its valid times intersect with the rest of the transaction's operations. In this patch, we adjust the kvnemesis validation to skip such rolled-back reads. Fixes: cockroachdb#125545 Release note: None Co-authored-by: Mira Radeva <[email protected]>
- Loading branch information