From 21c4f1aac330a588af72c55e8d5221c9151bbfea Mon Sep 17 00:00:00 2001 From: zmstone Date: Sat, 14 Dec 2024 15:00:36 +0100 Subject: [PATCH] fix: handle all exit exceptions when coordinator calls member process --- src/brod_group_coordinator.erl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/brod_group_coordinator.erl b/src/brod_group_coordinator.erl index cd7d7e86..9efb3a86 100644 --- a/src/brod_group_coordinator.erl +++ b/src/brod_group_coordinator.erl @@ -79,8 +79,10 @@ try EXPR catch - exit:{noproc, {gen_server, call, [MemberPid | _]}} -> - exit({shutdown, member_down}) + exit:{noproc, _} -> + exit({shutdown, member_down}); + exit:{Reason, _} -> + exit({shutdown, {member_down, Reason}}) end). -type config() :: brod:group_config().