@@ -1323,7 +1323,7 @@ force_checkpoint_on_queue(Config) ->
13231323 ? assertEqual ({'queue.declare_ok' , QQ , 0 , 0 },
13241324 declare (Ch , QQ , [{<<" x-queue-type" >>, longstr , <<" quorum" >>}])),
13251325
1326- N = 17000 ,
1326+ N = 20_000 ,
13271327 rabbit_ct_client_helpers :publish (Ch , QQ , N ),
13281328 wait_for_messages_ready ([Server0 ], RaName , N ),
13291329
@@ -1335,19 +1335,21 @@ force_checkpoint_on_queue(Config) ->
13351335 LCI =:= undefined
13361336 end ),
13371337
1338- % % {ok, State0, _} = rpc:call(Server0, ra, member_overview, [{RaName, Server0}]),
1339- % % ct:pal("Ra server state before forcing a checkpoint: ~tp~n", [State0]),
1338+ {ok , State0 , _ } = rpc :call (Server0 , ra , member_overview , [{RaName , Server0 }]),
1339+ ct :pal (" Ra server state before forcing a checkpoint: ~tp~n " , [State0 ]),
13401340
1341+ % % wait for longer than ?CHECK_MIN_INTERVAL_MS ms
1342+ timer :sleep (? CHECK_MIN_INTERVAL_MS + 1000 ),
13411343 rabbit_ct_broker_helpers :rpc (Config , 0 , rabbit_quorum_queue ,
13421344 force_checkpoint_on_queue , [QName ]),
13431345
13441346 % % Wait for initial checkpoint and make sure it's not 0
13451347 rabbit_ct_helpers :await_condition (
13461348 fun () ->
13471349 {ok , State , _ } = rpc :call (Server0 , ra , member_overview , [{RaName , Server0 }]),
1348- % % ct:pal("Ra server state: ~tp~n", [State]),
1350+ ct :pal (" Ra server state post forced checkpoint : ~tp~n " , [State ]),
13491351 #{log := #{latest_checkpoint_index := LCI }} = State ,
1350- LCI >= N
1352+ ( LCI =/= undefined ) andalso ( LCI >= N )
13511353 end ).
13521354
13531355force_checkpoint (Config ) ->
0 commit comments