From 90e7e1065cab7359cace0de601d58f79de646351 Mon Sep 17 00:00:00 2001 From: David Ansari Date: Wed, 21 May 2025 17:11:16 +0200 Subject: [PATCH] Delete single-active-consumer policy `single-active-consumer` shouldn't be listed under `unsupported_policies` for quorum queues and streams because it isn't a valid policy in the first place, see https://www.rabbitmq.com/docs/consumers#sac-cannot-be-enabled-with-a-policy --- deps/rabbit/src/rabbit_quorum_queue.erl | 2 +- deps/rabbit/src/rabbit_stream_queue.erl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/rabbit/src/rabbit_quorum_queue.erl b/deps/rabbit/src/rabbit_quorum_queue.erl index 08cb89ccee9..797b346d274 100644 --- a/deps/rabbit/src/rabbit_quorum_queue.erl +++ b/deps/rabbit/src/rabbit_quorum_queue.erl @@ -544,7 +544,7 @@ filter_quorum_critical(Queues, ReplicaStates, Self) -> capabilities() -> #{unsupported_policies => [%% Classic policies <<"max-priority">>, <<"queue-mode">>, - <<"single-active-consumer">>, <<"ha-mode">>, <<"ha-params">>, + <<"ha-mode">>, <<"ha-params">>, <<"ha-sync-mode">>, <<"ha-promote-on-shutdown">>, <<"ha-promote-on-failure">>, <<"queue-master-locator">>, %% Stream policies diff --git a/deps/rabbit/src/rabbit_stream_queue.erl b/deps/rabbit/src/rabbit_stream_queue.erl index 047b385765b..0143ce10205 100644 --- a/deps/rabbit/src/rabbit_stream_queue.erl +++ b/deps/rabbit/src/rabbit_stream_queue.erl @@ -1335,7 +1335,7 @@ capabilities() -> <<"dead-letter-routing-key">>, <<"max-length">>, <<"max-in-memory-length">>, <<"max-in-memory-bytes">>, <<"max-priority">>, <<"overflow">>, <<"queue-mode">>, - <<"single-active-consumer">>, <<"delivery-limit">>, + <<"delivery-limit">>, <<"ha-mode">>, <<"ha-params">>, <<"ha-sync-mode">>, <<"ha-promote-on-shutdown">>, <<"ha-promote-on-failure">>, <<"queue-master-locator">>,