-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nexus] Use retryable transactions more extensively (#7212)
This PR finds spots where we use `transaction_async` and makes them use `transaction_retry_wrapper` instead. This means that under contention, we'll avoid wasting work, and can make use of CockroachDB's automated retry mechanisms. Additionally, this PR adds a clippy lint to help future usage avoid the "non-retryable" transaction variant. There are some use cases where avoiding retries is still reasonable: 1. Test-only code 2. Transactions which have truly minimal contention, or which can fail with serialization errors without issue 3. Nested transactions
- Loading branch information
Showing
16 changed files
with
478 additions
and
384 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.