Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for #710#issuecomment-297453955 #6

Merged
merged 1 commit into from
Apr 28, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/leo_membership_mq_client.erl
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,13 @@ handle_call({consume, Id, MessageBin}) ->

case leo_redundant_manager_api:get_member_by_node(RemoteNode) of
{ok, #member{state = State}} ->
case leo_misc:node_existence(RemoteNode, timer:seconds(10)) of
case catch leo_misc:node_existence(RemoteNode, timer:seconds(10)) of
{'EXIT', _} ->
% In order to keep the same behavior with <= 1.3.2.1
% by ignoring errors {cause,{noproc,{gen_server,call,[{rex, ...
% Refer https://github.com/leo-project/leofs/issues/710#issuecomment-297453955
% for more detail.
ok;
true when State == ?STATE_STOP ->
notify_error_to_manager(Id, RemoteNode, Error);
true ->
Expand Down