Skip to content

Commit 3c52f55

Browse files
committed
Use lazy queue in dynamic_ha_SUITE
In mixed version cluster tests where the new node uses CQv2, when mirror synchronisation happens, v2 (source) overloads v1 (destination) leading to a memory spike and a crash (in a memory-constrained CI environment). Given that in 3.12 we switch to a lazy-like mode for all classic queues, I think we can make use a lazy queue in the test.
1 parent a404b49 commit 3c52f55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

deps/rabbit/test/dynamic_ha_SUITE.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,16 +1018,16 @@ apply_policy(Config, N, undefined) ->
10181018
apply_policy(Config, N, all) ->
10191019
rabbit_ct_broker_helpers:set_ha_policy(
10201020
Config, N, ?POLICY, <<"all">>,
1021-
[{<<"ha-sync-mode">>, <<"automatic">>}]);
1021+
[{<<"ha-sync-mode">>, <<"automatic">>}, {<<"queue-mode">>, <<"lazy">>}]);
10221022
apply_policy(Config, N, {nodes, Nodes}) ->
10231023
NNodes = [atom_to_binary(Node) || Node <- Nodes],
10241024
rabbit_ct_broker_helpers:set_ha_policy(
10251025
Config, N, ?POLICY, {<<"nodes">>, NNodes},
1026-
[{<<"ha-sync-mode">>, <<"automatic">>}]);
1026+
[{<<"ha-sync-mode">>, <<"automatic">>}, {<<"queue-mode">>, <<"lazy">>}]);
10271027
apply_policy(Config, N, {exactly, Exactly}) ->
10281028
rabbit_ct_broker_helpers:set_ha_policy(
10291029
Config, N, ?POLICY, {<<"exactly">>, Exactly},
1030-
[{<<"ha-sync-mode">>, <<"automatic">>}]).
1030+
[{<<"ha-sync-mode">>, <<"automatic">>}, {<<"queue-mode">>, <<"lazy">>}]).
10311031

10321032
forget_cluster_node(Config, Node, NodeToRemove) ->
10331033
rabbit_ct_broker_helpers:rabbitmqctl(

0 commit comments

Comments
 (0)