Skip to content
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
12 changes: 11 additions & 1 deletion src/rabbit_amqqueue.erl
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,17 @@ retry_wait(Q = #amqqueue{pid = QPid, name = Name, state = QState}, F, E, Retries
{stopped, false} ->
E({absent, Q, stopped});
_ ->
false = rabbit_mnesia:is_process_alive(QPid),
case rabbit_mnesia:is_process_alive(QPid) of
true ->
% rabbitmq-server#1682
% The old check would have crashed here,
% instead, log it and run the exit fun. absent & alive is weird,
% but better than crashing with badmatch,true
rabbit_log:debug("Unexpected alive queue process ~p~n", [QPid]),
E({absent, Q, alive});
false ->
ok % Expected result
end,
timer:sleep(30),
with(Name, F, E, RetriesLeft - 1)
end.
Expand Down