-
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.
kv, client, sql: correctly restart the Transaction proto on DistSQL r…
…etryable errors The structural changes are: - Transaction restarting logic is moved from the TxnCoordSender into the client.Txn, and is exposed from there such that DistSQL can call it on errors that it receives - these errors haven't gone through client.Txn.send() or through the TxnCoordSender. - client.Txn now can be configured to call into the TxnCoordSender to ask it to stop heartbeating a Transaction record that is no longer in use (after a TransactionAbortedError). DistSQL will configure the transactions it uses this way. For the rest, the TxnCoordSender is still in charge of stoping the heartbeat on errors that go through it.
- Loading branch information
1 parent
50a1ada
commit 7562c4d
Showing
18 changed files
with
648 additions
and
389 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
Oops, something went wrong.