@@ -1343,7 +1343,7 @@ force_vhost_queues_shrink_member_to_current_member(Config) ->
13431343 end || Q <- QQs , VHost <- VHosts ].
13441344
13451345force_checkpoint_on_queue (Config ) ->
1346- [Server0 , _Server1 , _Server2 ] =
1346+ [Server0 , Server1 , Server2 ] =
13471347 rabbit_ct_broker_helpers :get_node_configs (Config , nodename ),
13481348 Ch = rabbit_ct_client_helpers :open_channel (Config , Server0 ),
13491349 QQ = ? config (queue_name , Config ),
@@ -1364,6 +1364,18 @@ force_checkpoint_on_queue(Config) ->
13641364 #{log := #{latest_checkpoint_index := LCI }} = State ,
13651365 LCI =:= undefined
13661366 end ),
1367+ rabbit_ct_helpers :await_condition (
1368+ fun () ->
1369+ {ok , State , _ } = rpc :call (Server1 , ra , member_overview , [{RaName , Server1 }]),
1370+ #{log := #{latest_checkpoint_index := LCI }} = State ,
1371+ LCI =:= undefined
1372+ end ),
1373+ rabbit_ct_helpers :await_condition (
1374+ fun () ->
1375+ {ok , State , _ } = rpc :call (Server2 , ra , member_overview , [{RaName , Server2 }]),
1376+ #{log := #{latest_checkpoint_index := LCI }} = State ,
1377+ LCI =:= undefined
1378+ end ),
13671379
13681380 {ok , State0 , _ } = rpc :call (Server0 , ra , member_overview , [{RaName , Server0 }]),
13691381 ct :pal (" Ra server state before forcing a checkpoint: ~tp~n " , [State0 ]),
@@ -1380,6 +1392,20 @@ force_checkpoint_on_queue(Config) ->
13801392 ct :pal (" Ra server state post forced checkpoint: ~tp~n " , [State ]),
13811393 #{log := #{latest_checkpoint_index := LCI }} = State ,
13821394 (LCI =/= undefined ) andalso (LCI >= N )
1395+ end ),
1396+ rabbit_ct_helpers :await_condition (
1397+ fun () ->
1398+ {ok , State , _ } = rpc :call (Server1 , ra , member_overview , [{RaName , Server1 }]),
1399+ ct :pal (" Ra server state post forced checkpoint: ~tp~n " , [State ]),
1400+ #{log := #{latest_checkpoint_index := LCI }} = State ,
1401+ (LCI =/= undefined ) andalso (LCI >= N )
1402+ end ),
1403+ rabbit_ct_helpers :await_condition (
1404+ fun () ->
1405+ {ok , State , _ } = rpc :call (Server2 , ra , member_overview , [{RaName , Server2 }]),
1406+ ct :pal (" Ra server state post forced checkpoint: ~tp~n " , [State ]),
1407+ #{log := #{latest_checkpoint_index := LCI }} = State ,
1408+ (LCI =/= undefined ) andalso (LCI >= N )
13831409 end ).
13841410
13851411force_checkpoint (Config ) ->
0 commit comments