Skip to content

Commit ada57c0

Browse files
committed
per_vhost_connection_limit_SUITE: Ensure maintenance mode table is replicated
See #9005 for an explanation of the bug.
1 parent a7509f3 commit ada57c0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

deps/rabbit/test/per_vhost_connection_limit_SUITE.erl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,17 @@ cluster_multiple_vhosts_zero_limit(Config) ->
657657
vhost_limit_after_node_renamed(Config) ->
658658
A = rabbit_ct_broker_helpers:get_node_config(Config, 0, nodename),
659659

660+
%% Make sure the maintenance mode states Mnesia table is replicated
661+
%% everywhere. We do this here, just in case mixed-version testing is
662+
%% against a version of RabbitMQ that doesn't have the fix yet.
663+
%%
664+
%% See https://github.com/rabbitmq/rabbitmq-server/pull/9005.
665+
B = rabbit_ct_broker_helpers:get_node_config(Config, 1, nodename),
666+
rabbit_ct_broker_helpers:rpc(
667+
Config, B,
668+
rabbit_table, ensure_table_copy,
669+
[rabbit_node_maintenance_states, B, ram_copies]),
670+
660671
VHost = <<"/renaming_node">>,
661672
set_up_vhost(Config, VHost),
662673
set_vhost_connection_limit(Config, VHost, 2),

0 commit comments

Comments
 (0)