-
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: minimize retries with 1PC commits
Introduce a new `NoRefreshSpans` field to the `EndTransactionRequest` arguments. This specifies that a serializable isolation transaction has encountered no refresh spans. On a 1PC commit, this can be used to avoid serializable restarts by re-executing the 1PC transaction at an appropriately higher timestamp in the event of the timestamp being forwarded by the timestamp cache or because of write-too-old errors. When evaluating a write batch, we now allow a local retry for write too old errors for non-transactional batches, and for serializable 1PC txns where `NoRefreshSpans` is true. Release note: None
- Loading branch information
1 parent
7ba7f85
commit c6f9b92
Showing
7 changed files
with
708 additions
and
331 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
Oops, something went wrong.