Skip to content

Commit a97ec92

Browse files
committed
Quorum queues: ignore handle_tick with an old overview format
If handle_tick is called before the machine has finished the upgrade process, it could receive an old overview format (stats tuple vs map). Let's ignore it and the next handle tick should be fine. Unlikely to happen in production, detected on CI with a very low tick timeout
1 parent 96ebce8 commit a97ec92

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

deps/rabbit/src/rabbit_quorum_queue.erl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,10 @@ handle_tick(QName,
655655
[rabbit_misc:rs(QName), Err]),
656656
ok
657657
end
658-
end).
658+
end);
659+
handle_tick(QName, Config, _Nodes) ->
660+
rabbit_log:debug("~ts: handle tick received unexpected config format ~tp",
661+
[rabbit_misc:rs(QName), Config]).
659662

660663
repair_leader_record(Q, Self) ->
661664
Node = node(),

0 commit comments

Comments
 (0)