rabbitmq / rabbitmq-server

Open source RabbitMQ: core server and tier 1 (built-in) plugins
https://www.rabbitmq.com/
Other
11.85k stars 3.9k forks source link

Handle unknown QQ state #11515

Closed mkuratczyk closed 1 week ago

mkuratczyk commented 2 weeks ago

ra_state may contain a QQ state such as {'foo',init,unknown}. Before this fix, all_replica_states did not map such states to a 2-tuple which leads to a crash in maps:from_list because a 3-tuple can't be handled.

A crash in rabbit_quorum_queue:all_replica_states leads to no results being returned from a given node when the CLI asks for QQs with minimum quorum.

Fixes https://github.com/rabbitmq/rabbitmq-server/issues/11514