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
|
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
|
||||||
).
|
).
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue