[ 
https://issues.apache.org/jira/browse/RATIS-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17218028#comment-17218028
 ] 

Tsz-wo Sze commented on RATIS-1101:
-----------------------------------

[~amaliujia], thanks for filing this JIRA and working on it.

testOldLeaderNotCommit assumes followers.size() == NUM_SERVERS - 1. For some 
reasons (the machine is slow?), it was not the true so that it caused 
IndexOutOfBounds.

We may throw org.junit.AssumptionViolatedException in that case. Then the test 
will be ignored instead of failing.

> Fix Failed UT: RaftBasicTests.runTestOldLeaderNotCommit: IndexOutOfBounds
> -------------------------------------------------------------------------
>
>                 Key: RATIS-1101
>                 URL: https://issues.apache.org/jira/browse/RATIS-1101
>             Project: Ratis
>          Issue Type: Sub-task
>          Components: test
>            Reporter: Rui Wang
>            Assignee: Rui Wang
>            Priority: Major
>
> https://github.com/apache/incubator-ratis/pull/225/checks?check_run_id=1281324912



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to