[ 
https://issues.apache.org/jira/browse/RATIS-2727?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shilun Fan updated RATIS-2727:
------------------------------
    Description: 
{{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

 

  was:
{{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}}{{{}{}}}{{{}{}}}

{{}}


> 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
>            Priority: Minor
>
> {{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)

Reply via email to