[
https://issues.apache.org/jira/browse/RATIS-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
runzhiwang updated RATIS-1284:
------------------------------
Description:
Run the test 20 times, will failed at the Assert.assertEquals(leader.getId(),
lastServerLeaderId);
{code:java}
@Test
public void testLateServerStart() throws Exception {
for (int k = 0; k < 20; k ++) {
final int numServer = 3;
...
Assert.assertEquals(leader.getId(), lastServerLeaderId);
}
}
{code}
> Fix failed UT: testLateServerStart
> ----------------------------------
>
> Key: RATIS-1284
> URL: https://issues.apache.org/jira/browse/RATIS-1284
> Project: Ratis
> Issue Type: Sub-task
> Reporter: runzhiwang
> Assignee: runzhiwang
> Priority: Major
>
> Run the test 20 times, will failed at the Assert.assertEquals(leader.getId(),
> lastServerLeaderId);
> {code:java}
> @Test
> public void testLateServerStart() throws Exception {
> for (int k = 0; k < 20; k ++) {
> final int numServer = 3;
> ...
> Assert.assertEquals(leader.getId(), lastServerLeaderId);
> }
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)