Skip to content

add serialization error#88

Merged
vroldanbet merged 1 commit intomainfrom
add-serialization-error
Oct 3, 2023
Merged

add serialization error#88
vroldanbet merged 1 commit intomainfrom
add-serialization-error

Conversation

@vroldanbet
Copy link
Copy Markdown
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 force-pushed the add-serialization-error branch from e68d9e5 to b3e295b Compare October 2, 2023 15:38
Copy link
Copy Markdown
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 vroldanbet merged commit 97ac42f into main Oct 3, 2023
@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