You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Tsz-wo Sze (Jira)" <ji...@apache.org> on 2026/10/05 02:18:00 UTC
[jira] [Resolved] (RATIS-2727) LogAppender purge tests may fail due to concurrent nextIndex updates
[ https://issues.apache.org/jira/browse/RATIS-2727?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tsz-wo Sze resolved RATIS-2727.
-------------------------------
Fix Version/s: 3.4.0
Resolution: Fixed
The pull request is now merged. Thanks, [~slfan1989]!
> LogAppender purge tests may fail due to concurrent nextIndex updates
> --------------------------------------------------------------------
>
> Key: RATIS-2727
> URL: https://issues.apache.org/jira/browse/RATIS-2727
> Project: Ratis
> Issue Type: Bug
> Components: test
> Reporter: Shilun Fan
> Assignee: Shilun Fan
> Priority: Minor
> Fix For: 3.4.0
>
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> {{The LogAppender purge tests modify the FollowerInfo of a running appender.}}
>
> {{Background replication can update nextIndex before the test checks that it remains unchanged, causing a spurious assertion failure:}}
>
> {code:java}
> Follower nextIndex should remain unchanged
> ==> expected: <58> but was: <61> {code}
> {{This can happen even when the leader does not change.}}
>
> Affected tests:
> * {{testNewAppendEntriesRequestAfterPurgeFollowerAtStartIndex}}
> * testNewAppendEntriesRequestAfterPurgeFollowerBehindStartIndex
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)