fix(dsrepl): Treat all exceptions from storage layer as recoverable
This commit is contained in:
parent
a7259bc35d
commit
53620e8439
|
@ -566,7 +566,11 @@ list_nodes() ->
|
|||
EXPR
|
||||
catch
|
||||
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
|
||||
).
|
||||
|
||||
|
|
Loading…
Reference in New Issue