Skip to content

Commit 564d584

Browse files
authored
Merge pull request #335 from rabbitmq/handle-normal-exit-reason-in-do_reset
khepri_cluster: Handle `{error, normal}` in do_reset/4
2 parents 1cb91f6 + a761116 commit 564d584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/khepri_cluster.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ do_reset(RaSystem, StoreId, ThisMember, Timeout) ->
979979
end;
980980
{timeout, _} ->
981981
{error, timeout};
982-
{error, noproc} ->
982+
{error, Reason} when Reason =:= noproc orelse Reason =:= normal ->
983983
?LOG_DEBUG(
984984
"The local Ra server exited while we tried to detach it from "
985985
"its cluster. It means it was removed from the cluster by "

0 commit comments

Comments
 (0)