You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Tsz Wo Nicholas Sze (JIRA)" <ji...@apache.org> on 2019/03/20 02:53:00 UTC

[jira] [Comment Edited] (RATIS-506) ServerRestartTests.testRestartCommitIndex may fail intermittently

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

Tsz Wo Nicholas Sze edited comment on RATIS-506 at 3/20/19 2:52 AM:
--------------------------------------------------------------------

r506_20190320.patch: fixes the test and addresses [~msingh]'s comments in RATIS-502.


was (Author: szetszwo):
r506_20190320.patch: fixes the test and addresses [~msingh]'s comments in RATIS-499.

> ServerRestartTests.testRestartCommitIndex may fail intermittently
> -----------------------------------------------------------------
>
>                 Key: RATIS-506
>                 URL: https://issues.apache.org/jira/browse/RATIS-506
>             Project: Ratis
>          Issue Type: Bug
>          Components: test
>            Reporter: Tsz Wo Nicholas Sze
>            Assignee: Tsz Wo Nicholas Sze
>            Priority: Minor
>         Attachments: r506_20190320.patch
>
>
> {code}
> java.lang.AssertionError: 
> Expected :101
> Actual   :111
> 	at org.junit.Assert.fail(Assert.java:88)
> 	at org.junit.Assert.failNotEquals(Assert.java:834)
> 	at org.junit.Assert.assertEquals(Assert.java:645)
> 	at org.junit.Assert.assertEquals(Assert.java:631)
> 	at org.apache.ratis.server.ServerRestartTests.runTestRestartCommitIndex(ServerRestartTests.java:276)
> {code}
> It seems that the test runs too fast so that the last metadata entry is not yet written.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)