-
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: track intents when response contains ABORTED transaction
Previously, we were clearing the in-flight write set as soon as a COMMITTED transaction or an ABORTED transaction was seen in a batch response. This seems ok to do for COMMITTED transactions, but we really shouldn't risk leaking intents when an ABORTED transaction is observed, especially because we may want to go back and clean up its intents later. I don't know when this would come up because I don't think any requests return ABORTED txs instead of returning a TransactionAbortedError, but the commit adds a unit test around the behavior anyway. Release note: None
- Loading branch information
1 parent
61c0f48
commit e44b391
Showing
2 changed files
with
72 additions
and
6 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