From e68d9e5e51a1a6eda4f874df165ea349b4dcf4ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Rold=C3=A1n=20Betancort?= Date: Mon, 2 Oct 2023 09:41:36 +0100 Subject: [PATCH] add serialization error to support https://github.com/authzed/spicedb/pull/1552 --- authzed/api/v1/error_reason.proto | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/authzed/api/v1/error_reason.proto b/authzed/api/v1/error_reason.proto index fb9d3e8..8e7240d 100644 --- a/authzed/api/v1/error_reason.proto +++ b/authzed/api/v1/error_reason.proto @@ -285,4 +285,17 @@ enum ErrorReason { // } // } ERROR_REASON_MAXIMUM_DEPTH_EXCEEDED = 19; + + // The request failed due to a serialization error in the backend database. + // This typically indicates that various in flight transactions conflicted with each other + // and the database had to abort one or more of them. + // + // Example of an ErrorInfo: + // + // { + // "reason": "ERROR_REASON_SERIALIZATION_FAILURE", + // "domain": "authzed.com", + // "metadata": {} + // } + ERROR_REASON_SERIALIZATION_FAILURE = 20; } \ No newline at end of file