Skip to content

Commit

Permalink
Ignore timeout errors from deleting transient queues on node down
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis committed Apr 30, 2024
1 parent eac133d commit 3207119
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion deps/rabbit/src/rabbit_amqqueue.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1995,7 +1995,12 @@ maybe_clear_recoverable_node(Node) ->
on_node_down(Node) ->
{Time, Ret} = timer:tc(fun() -> rabbit_db_queue:delete_transient(filter_transient_queues_to_delete(Node)) end),
case Ret of
ok -> ok;
{error, timeout} ->
%% This type of failure is only possible with Khepri but transient
%% entities are going away as Khepri stabilizes.
rabbit_log:warning("Failed to delete transient queues on node "
"down due to a timeout"),
ok;
{QueueNames, Deletions} ->
case length(QueueNames) of
0 -> ok;
Expand Down

0 comments on commit 3207119

Please sign in to comment.