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

add serialization error #88

Merged
merged 1 commit into from
Oct 3, 2023
Merged

add serialization error #88

merged 1 commit into from
Oct 3, 2023

Conversation

vroldanbet
Copy link
Contributor

@vroldanbet vroldanbet commented Oct 2, 2023

to support authzed/spicedb#1552

Database serialization errors are not that uncommon when running the backend datastores at isolation level SERIALIZABLE. However, those errors could be reported in a clearer way to the client instead of some cryptic database error.

This adds a new error reason to support providing a typed response when serialization errors happen.

@vroldanbet vroldanbet self-assigned this Oct 2, 2023
vroldanbet added a commit to authzed/spicedb that referenced this pull request Oct 2, 2023
with authzed/api#88 a new error
reason is exposed to signal datastore serialization
errors.
vroldanbet added a commit to authzed/spicedb that referenced this pull request Oct 2, 2023
with authzed/api#88 a new error
reason is exposed to signal datastore serialization
errors.
@vroldanbet vroldanbet force-pushed the add-serialization-error branch from e68d9e5 to b3e295b Compare October 2, 2023 15:38
Copy link
Member

@josephschorr josephschorr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

vroldanbet added a commit to authzed/spicedb that referenced this pull request Oct 3, 2023
with authzed/api#88 a new error
reason is exposed to signal datastore serialization
errors.
vroldanbet added a commit to authzed/spicedb that referenced this pull request Oct 3, 2023
with authzed/api#88 a new error
reason is exposed to signal datastore serialization
errors.
@vroldanbet vroldanbet merged commit 97ac42f into main Oct 3, 2023
3 checks passed
@vroldanbet vroldanbet deleted the add-serialization-error branch October 3, 2023 16:06
@github-actions github-actions bot locked and limited conversation to collaborators Oct 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants