-
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.
storage/concurrency: split read and write timestamp when scanning loc…
…kTable This resolves an infinite loop that was possible and somewhat common in `TestMonotonicInserts`. The loop occurred because read requests were discovering intents at timestamps above their read timestamp but within their uncertainty interval. This is essential to avoid stale reads. However, it was confusing the lockTable. This commit addresses this issue by considering a transaction's uncertainty interval when scanning the lockTable. A new assertion was added that would detect this infinite loop condition.
- Loading branch information
1 parent
292a8f5
commit 7b0c15a
Showing
4 changed files
with
80 additions
and
41 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