@@ -811,35 +811,49 @@ temporary_queue_after_partition_recovery_2(Config, QueueDeclare) ->
811811 end , Nodes ),
812812
813813 % % Publich to and consume from the queue.
814+ ct :pal (" Open connection" ),
814815 {_PConn , PCh } = rabbit_ct_client_helpers :open_connection_and_channel (
815816 Config , Node2 ),
817+ ct :pal (" Publish messages to Q1" ),
816818 publish_many (PCh , QName1 # resource .name , 10 ),
819+ ct :pal (" Publish messages to Q2" ),
817820 publish_many (PCh , QName2 # resource .name , 10 ),
821+ ct :pal (" Consume all messages" ),
818822 consume (20 ),
819823
820824 % % Close the first consuming client to trigger the queue deletion during
821825 % % the network partition. Because of the network partition, the queue
822826 % % process exits but it couldn't delete the queue record.
823- _ = rabbit_ct_client_helpers :close_connection_and_channel (
824- Conn1 , Ch1 ),
827+ ct :pal (" Close connection 1" ),
828+ _ = spawn (fun () ->
829+ rabbit_ct_client_helpers :close_connection_and_channel (
830+ Conn1 , Ch1 )
831+ end ),
825832
826833 KhepriTimeout = rabbit_ct_broker_helpers :rpc (Config , Node2 , khepri_app , get_default_timeout , []),
834+ ct :pal (" Sleep > ~b ms" , [KhepriTimeout ]),
827835 timer :sleep (KhepriTimeout + 10000 ),
828836
829837 % % Close the second consuming client to trigger the queue deletion during
830838 % % the network partition. This time, the partition is solved while the
831839 % % queue process tries to delete the record.
832- _ = rabbit_ct_client_helpers :close_connection_and_channel (
833- Conn2 , Ch2 ),
840+ ct :pal (" Close connection 2" ),
841+ _ = spawn (fun () ->
842+ rabbit_ct_client_helpers :close_connection_and_channel (
843+ Conn2 , Ch2 )
844+ end ),
834845
835846 % % We resolve the network partition.
836847 lists :foreach (
837848 fun (Node ) ->
849+ ct :pal (" Allow traffic with ~s " , [Node ]),
838850 rabbit_ct_broker_helpers :allow_traffic_between (
839851 Node2 , Node )
840852 end , Majority ),
853+ ct :pal (" Cluster status" ),
841854 clustering_utils :assert_cluster_status ({Nodes , Nodes }, Nodes ),
842855
856+ ct :pal (" Wait for connection DOWN" ),
843857 receive
844858 {'DOWN' , CMRef1 , _ , _ , Reason1_1 } ->
845859 ct :pal (" Connection ~p exited: ~p " , [Conn1 , Reason1_1 ]),
@@ -848,6 +862,7 @@ temporary_queue_after_partition_recovery_2(Config, QueueDeclare) ->
848862 after Timeout ->
849863 ct :fail (" Connection ~p still running" , [Conn1 ])
850864 end ,
865+ ct :pal (" Wait for queue DOWN" ),
851866 receive
852867 {'DOWN' , QMRef1 , _ , _ , Reason1_2 } ->
853868 ct :pal (" Queue ~p exited: ~p " , [QPid1 , Reason1_2 ]),
0 commit comments