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 2017/11/20 02:07:00 UTC

[jira] [Commented] (RATIS-149) TestRaftStream.testSimpleWrite may fail

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

Tsz Wo Nicholas Sze commented on RATIS-149:
-------------------------------------------

It seems easier to reproduce the failure of TestRaftStream if the AppendStreamer.LOG is turned off.
{code}
+++ b/ratis-grpc/src/test/java/org/apache/ratis/grpc/TestRaftStream.java
@@ -46,7 +46,7 @@ import static org.junit.Assert.fail;
 
 public class TestRaftStream extends BaseTest {
   static {
-    LogUtils.setLogLevel(AppendStreamer.LOG, Level.ALL);
+//    LogUtils.setLogLevel(AppendStreamer.LOG, Level.ALL);
   }
{code}
With the script in RATIS-147, run
{code}
./dev-support/run-test-repeatedly.sh TestRaftStream#testSimpleWrite
{code}


> TestRaftStream.testSimpleWrite may fail
> ---------------------------------------
>
>                 Key: RATIS-149
>                 URL: https://issues.apache.org/jira/browse/RATIS-149
>             Project: Ratis
>          Issue Type: Bug
>            Reporter: Tsz Wo Nicholas Sze
>
> Two different failure cases:
> - {code}
> java.lang.AssertionError: expected:<500> but was:<350>
> 	at org.apache.ratis.grpc.TestRaftStream.checkLog(TestRaftStream.java:106)
> 	at org.apache.ratis.grpc.TestRaftStream.testSimpleWrite(TestRaftStream.java:100)
> {code}
> - {code}
> org.junit.internal.ArrayComparisonFailure: arrays first differed at element [0]; expected:<63> but was:<-81>
> 	at org.apache.ratis.grpc.TestRaftStream.checkLog(TestRaftStream.java:114)
> 	at org.apache.ratis.grpc.TestRaftStream.testSimpleWrite(TestRaftStream.java:100)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)