Skip to content

Commit 95909d1

Browse files
committed
issue #36: fix queue crash when deleting it
When deleting the queue via the Management console, few queue information requests are still sent to the deleted queue. As the queue does not exist anymore, so does the cache. Therefore, we ignore errors during deleted cache info lookups. This could not be catched via tests as the behaviour is triggered by the management plugin. Signed-off-by: Matteo Cafasso <[email protected]>
1 parent b6872d4 commit 95909d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/rabbit_message_deduplication_queue.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ defmodule RabbitMQ.MessageDeduplicationPlugin.Queue do
444444
try do
445445
Cache.info(cache)
446446
catch
447+
:exit, {:aborted, {:no_exists, ^cache, _}} -> []
447448
:exit, {:noproc, {GenServer, :call, [^cache | _]}} -> []
448449
end
449450
end

0 commit comments

Comments
 (0)