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.
to support https://github.com/authzed/spicedb/pull/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.