@@ -68,7 +68,8 @@ groups() ->
6868                                            delete_declare ,
6969                                            metrics_cleanup_on_leadership_takeover ,
7070                                            metrics_cleanup_on_leader_crash ,
71-                                             consume_in_minority 
71+                                             consume_in_minority ,
72+                                             shrink_all 
7273                                            ]},
7374                      {cluster_size_5 , [], [start_queue ,
7475                                            start_queue_concurrent ,
@@ -189,7 +190,8 @@ init_per_testcase(Testcase, Config) when Testcase == reconnect_consumer_and_publ
189190                                           [{rmq_nodes_count , 3 },
190191                                            {rmq_nodename_suffix , Testcase },
191192                                            {tcp_ports_base },
192-                                             {queue_name , Q }
193+                                             {queue_name , Q },
194+                                             {alt_queue_name , <<Q /binary , " _alt" 
193195                                           ]),
194196    Config3  =  rabbit_ct_helpers :run_steps (
195197                Config2 ,
@@ -209,7 +211,8 @@ init_per_testcase(Testcase, Config) ->
209211    rabbit_ct_broker_helpers :rpc (Config , 0 , ? MODULE , delete_queues , []),
210212    Q  =  rabbit_data_coercion :to_binary (Testcase ),
211213    Config2  =  rabbit_ct_helpers :set_config (Config1 ,
212-                                            [{queue_name , Q }
214+                                            [{queue_name , Q },
215+                                             {alt_queue_name , <<Q /binary , " _alt" 
213216                                           ]),
214217    rabbit_ct_helpers :run_steps (Config2 , rabbit_ct_client_helpers :setup_steps ()).
215218
@@ -621,7 +624,29 @@ consume_in_minority(Config) ->
621624
622625    ? assertExit ({{shutdown , {connection_closing , {server_initiated_close , 541 , _ }}}, _ },
623626                amqp_channel :call (Ch , # 'basic.get' {queue  =  QQ ,
624-                                                    no_ack  =  false })).
627+                                                    no_ack  =  false })),
628+     ok  =  rabbit_ct_broker_helpers :start_node (Config , Server1 ),
629+     ok  =  rabbit_ct_broker_helpers :start_node (Config , Server2 ),
630+     ok .
631+ 
632+ shrink_all (Config ) -> 
633+     [Server0 , _Server1 , Server2 ] = 
634+         rabbit_ct_broker_helpers :get_node_configs (Config , nodename ),
635+ 
636+     Ch  =  rabbit_ct_client_helpers :open_channel (Config , Server0 ),
637+     QQ  =  ? config (queue_name , Config ),
638+     AQ  =  ? config (alt_queue_name , Config ),
639+     ? assertEqual ({'queue.declare_ok' , QQ , 0 , 0 },
640+                  declare (Ch , QQ , [{<<" x-queue-type" longstr , <<" quorum" 
641+     ? assertEqual ({'queue.declare_ok' , AQ , 0 , 0 },
642+                  declare (Ch , AQ , [{<<" x-queue-type" longstr , <<" quorum" 
643+     timer :sleep (500 ),
644+     Result  =  rpc :call (Server0 , rabbit_quorum_queue , shrink_all , [Server2 ]),
645+     ct :pal (" shring all result ~p " Result ]),
646+     ? assertMatch ([{ok , _ }, {ok , _ }], Result ),
647+     ok .
648+ 
649+ 
625650
626651subscribe_should_fail_when_global_qos_true (Config ) -> 
627652    [Server  | _ ] =  Servers  =  rabbit_ct_broker_helpers :get_node_configs (Config , nodename ),
0 commit comments