[
https://issues.apache.org/jira/browse/RATIS-2788?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rui Wang resolved RATIS-2788.
-----------------------------
Fix Version/s: 3.4.0
Resolution: Fixed
> 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
> Priority: Major
> Fix For: 3.4.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> 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)