You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Shilun Fan (Jira)" <ji...@apache.org> on 2026/10/02 01:23:00 UTC

[jira] [Created] (RATIS-2727) LogAppender purge tests may fail due to concurrent nextIndex updates

Shilun Fan created RATIS-2727:
---------------------------------

             Summary: 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
            Reporter: Shilun Fan
            Assignee: Shilun Fan


{{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)