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 (backport #11515) #11524

Closed mergify[bot] closed 1 week ago

mergify[bot] commented 1 week 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


This is an automatic backport of pull request #11515 done by Mergify.