You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2021/12/03 16:04:00 UTC
[jira] [Commented] (RATIS-531) TestServerRestartWithGrpc.runTestRestartCommitIndex is flaky
[ https://issues.apache.org/jira/browse/RATIS-531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17453115#comment-17453115 ]
Attila Doroszlai commented on RATIS-531:
----------------------------------------
{code}
[ERROR] Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 9.108 s <<< FAILURE! - in org.apache.ratis.grpc.TestServerRestartWithGrpc
[ERROR] testRestartCommitIndex(org.apache.ratis.grpc.TestServerRestartWithGrpc) Time elapsed: 2.339 s <<< FAILURE!
java.lang.AssertionError: expected:<(t:1, i:110)> but was:<(t:1, i:107)>
...
at org.apache.ratis.RaftTestUtil.assertSameLog(RaftTestUtil.java:485)
at org.apache.ratis.server.ServerRestartTests.runTestRestartCommitIndex(ServerRestartTests.java:280)
at org.apache.ratis.server.impl.MiniRaftCluster$Factory$Get.runWithNewCluster(MiniRaftCluster.java:125)
at org.apache.ratis.server.impl.MiniRaftCluster$Factory$Get.runWithNewCluster(MiniRaftCluster.java:113)
at org.apache.ratis.server.ServerRestartTests.testRestartCommitIndex(ServerRestartTests.java:230)
{code}
> TestServerRestartWithGrpc.runTestRestartCommitIndex is flaky
> ------------------------------------------------------------
>
> Key: RATIS-531
> URL: https://issues.apache.org/jira/browse/RATIS-531
> Project: Ratis
> Issue Type: Bug
> Components: test
> Affects Versions: 0.4.0
> Reporter: Andy Wu
> Priority: Major
> Attachments: runTestRestartCommitIndex.log
>
>
>
> Repeatly run the *TestServerRestartWithGrpc.runTestRestartCommitIndex,* and it will fail after couple of runs.
> For the detailed log, please refer to the attachment. [^runTestRestartCommitIndex.log]
> {code:java}
> java.lang.AssertionError:
> Expected :136
> Actual :138
> <Click to see difference>
> 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)
> at org.apache.ratis.MiniRaftCluster$Factory$Get.runWithNewCluster(MiniRaftCluster.java:119)
> at org.apache.ratis.MiniRaftCluster$Factory$Get.runWithNewCluster(MiniRaftCluster.java:107)
> at org.apache.ratis.server.ServerRestartTests.testRestartCommitIndex(ServerRestartTests.java:221)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
> at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
> at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.lang.Thread.run(Thread.java:745)
> {code}
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)