Shilun Fan created RATIS-2788:
---------------------------------

             Summary: Fix progress monitoring in load tests
                 Key: RATIS-2788
                 URL: https://issues.apache.org/jira/browse/RATIS-2788
             Project: Ratis
          Issue Type: Bug
          Components: test
            Reporter: Shilun Fan
            Assignee: Shilun Fan


RaftBasicTests.testWithLoad monitors the counter used to trigger leader changes 
instead of actual client progress.

During a local run, clients had processed about 42 requests each, but the 
monitor reported "NO PROGRESS at 0" and unnecessarily restarted the leader.

Use the client step counters directly to detect progress. Keep the existing 
test workload and assertions unchanged.

 

 
{code:java}
2026-10-31 10:57:46,521 [Timer-1] Client4TestWithLoad0(step=46/300, 
isRunning=true, isAlive=true, exception=null)
2026-10-31 10:57:46,521 [Timer-1] Client4TestWithLoad3(step=47/300, 
isRunning=true, isAlive=true, exception=null)
2026-10-31 10:57:46,534 [Timer-1] NO PROGRESS at 0, try to restart 
leader=...s4...
2026-10-31 10:57:46,674 [Timer-1] Restarted leader=...s4...Tests run: 2, 
Failures: 0, Errors: 0, Skipped: 0
{code}
 



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to