authzed / api

Protocol Buffers & gRPC Services used by SpiceDB
https://authzed.com/docs
Apache License 2.0
16 stars 18 forks source link

add serialization error #88

Closed vroldanbet closed 1 year ago

vroldanbet commented 1 year ago

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.