Skip to content

Commit ad20a63

Browse files
author
Loïc Hoguin
committed
Don't kill the gatherer when there's a problem with a queue
1 parent 0fe4f7f commit ad20a63

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

deps/rabbit/src/rabbit_classic_queue_index_v2.erl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -979,8 +979,11 @@ queue_index_walker({start, DurableQueues}) when is_list(DurableQueues) ->
979979
ok = gatherer:fork(Gatherer),
980980
ok = worker_pool:submit_async(
981981
fun () -> link(Gatherer),
982-
ok = queue_index_walker_reader(QueueName, Gatherer),
983-
unlink(Gatherer),
982+
try
983+
queue_index_walker_reader(QueueName, Gatherer)
984+
after
985+
unlink(Gatherer)
986+
end,
984987
ok
985988
end)
986989
end || QueueName <- DurableQueues],

0 commit comments

Comments
 (0)