Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle the case where RELEASE SAVEPOINT fails with a retry #227

Merged
merged 1 commit into from
Oct 29, 2021

Conversation

ecordell
Copy link
Contributor

@ecordell ecordell commented Oct 27, 2021

From the CockroachDB Docs:

In some cases, the RELEASE SAVEPOINT statement itself can fail with a
retry error, mainly because transactions in CockroachDB only realize
that they need to be restarted when they attempt to commit. If this
happens, the retry error is handled as described in step 4.

This commit includes the RELEASE SAVEPOINT in the retry-able part of the
transaction.

@github-actions github-actions bot added area/datastore Affects the storage system area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) labels Oct 27, 2021
From the CockroachDB Docs:

In some cases, the RELEASE SAVEPOINT statement itself can fail with a
retry error, mainly because transactions in CockroachDB only realize
that they need to be restarted when they attempt to commit. If this
happens, the retry error is handled as described in step 4.

This commit includes the RELEASE SAVEPOINT in the retry-able part of the
transaction.
@jzelinskie jzelinskie added the kind/bug Something is broken or regressed label Oct 27, 2021
@ecordell ecordell marked this pull request as ready for review October 28, 2021 21:02
@jakedt jakedt merged commit 84b3961 into authzed:main Oct 29, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/datastore Affects the storage system area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) kind/bug Something is broken or regressed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants