-
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: improve use of observed tstamps to limit uncertainty restarts
This change relocates the logic for using observed timestamps to affect a transaction's `MaxTimestamp` field in order to avoid uncertainty restarts. This was previously done in `storage.Stores.Send`, but is now moved to `storage.Replica.executeReadOnlyBatch` and `storage.Replica.tryExecuteWriteBatch` in order to use information from the replica's lease to avoiding failing to read a value written in absolute time before the txn started, but at a higher timestamp than the timestamp observed at the node which now owns the replica lease. Fixes #23749 Release note: None
- Loading branch information
1 parent
526bab2
commit 85d4627
Showing
5 changed files
with
146 additions
and
33 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