fix(dsrepl): Treat all exceptions from storage layer as recoverable

This commit is contained in:
ieQu1 2024-05-24 13:58:06 +02:00
parent a7259bc35d
commit 53620e8439
No known key found for this signature in database
GPG Key ID: 488654DF3FED6FDE
1 changed files with 5 additions and 1 deletions

View File

@ -566,7 +566,11 @@ list_nodes() ->
EXPR EXPR
catch catch
error:RPCError__ = {erpc, _} -> error:RPCError__ = {erpc, _} ->
{error, recoverable, RPCError__} {error, recoverable, RPCError__};
%% Note: remote node never _throws_ unrecoverable errors, so
%% we can assume that all exceptions are transient.
EC__:RPCError__:Stack__ ->
{error, recoverable, #{EC__ => RPCError__, stacktrace => Stack__}}
end end
). ).