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

Tsz-wo Sze updated RATIS-2727:
------------------------------
    Component/s: test

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

Reply via email to