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

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

> ... the failure might be simply because the timeout value is too small.

It only took ~14 seconds for  increasing until 4193.  Afterward, there were no 
activities between 15:24:15 and 15:25:44 (~ 1.5 minutes).  So the timeout 
should be long enough.

{code}
2017-09-04 15:24:15,472 DEBUG impl.RaftServerImpl 
(RaftServerImpl.java:logAppendEntries(689)) - s0: succeeded to handle 
AppendEntries. Reply: s3->s0,true,SUCCESS,nextIndex:4193,term:9
2017-09-04 15:24:15,472 DEBUG impl.RaftServerImpl 
(RaftServerImpl.java:logAppendEntries(689)) - s1: succeeded to handle 
AppendEntries. Reply: s3->s1,true,SUCCESS,nextIndex:4193,term:9
2017-09-04 15:24:15,472 DEBUG impl.RaftServerImpl 
(RaftServerImpl.java:logAppendEntries(689)) - s4: succeeded to handle 
AppendEntries. Reply: s3->s4,true,SUCCESS,nextIndex:4193,term:9
2017-09-04 15:24:15,472 DEBUG impl.RaftServerImpl 
(RaftServerImpl.java:logAppendEntries(689)) - s2: succeeded to handle 
AppendEntries. Reply: s3->s2,true,SUCCESS,nextIndex:4193,term:9
2017-09-04 15:24:15,472 DEBUG client.RaftClient 
(RaftClientImpl.java:sendRequest(151)) - 
client-1B0DA87C-0976-45E7-B92C-572728BDD03B: 
RaftClientReply(client-1B0DA87C-0976-45E7-B92C-572728BDD03B->s3) in raft group 
group-167A5440-1C21-423D-A145-F2050D4439DC, callId: 4187, success: true

2017-09-04 15:25:44,277 INFO  ratis.MiniRaftCluster 
(MiniRaftCluster.java:shutdown(442)) - 
************************************************************** 
2017-09-04 15:25:44,278 INFO  ratis.MiniRaftCluster 
(MiniRaftCluster.java:shutdown(443)) - *** 
2017-09-04 15:25:44,278 INFO  ratis.MiniRaftCluster 
(MiniRaftCluster.java:shutdown(444)) - ***     Stopping 
MiniRaftClusterWithHadoopRpc
2017-09-04 15:25:44,278 INFO  ratis.MiniRaftCluster 
(MiniRaftCluster.java:shutdown(445)) - *** 
2017-09-04 15:25:44,278 INFO  ratis.MiniRaftCluster 
(MiniRaftCluster.java:shutdown(446)) - 
************************************************************** 
{code}


> RaftLogWorker may throw IllegalStateException
> ---------------------------------------------
>
>                 Key: RATIS-111
>                 URL: https://issues.apache.org/jira/browse/RATIS-111
>             Project: Ratis
>          Issue Type: Bug
>            Reporter: Tsz Wo Nicholas Sze
>            Assignee: Tsz Wo Nicholas Sze
>         Attachments: 
> org.apache.ratis.hadooprpc.TestRaftWithHadoopRpc-output.txt, 
> org.apache.ratis.server.simulation.TestNotLeaderExceptionWithSimulation-output.txt,
>  r111_20170823.patch, r111_20170824b.patch, r111_20170824c.patch, 
> r111_20170824.patch, r111_20170828.patch, r111_20170829.patch
>
>
> {code}
> Exception in thread "RaftLogWorker for Storage Directory 
> /Users/szetszwo/hadoop/incubator-ratis/ratis-server/target/test/data/e19600c7a0228b58/MiniRaftClusterWithSimulatedRpc/s3/group-E1192218-3981-4FC5-90BF-4CFB0D270F6B"
>  2017-08-22 15:52:47,983 INFO  impl.RaftServerImpl 
> (RaftLogWorker.java:execute(278)) - RaftLogWorker-s4 finalizing log segment 
> /Users/szetszwo/hadoop/incubator-ratis/ratis-server/target/test/data/e19600c7a0228b58/MiniRaftClusterWithSimulatedRpc/s4/group-E1192218-3981-4FC5-90BF-4CFB0D270F6B/current/log_inprogress_0
> org.apache.ratis.util.ExitUtils$ExitException: RaftLogWorker for Storage 
> Directory 
> /Users/szetszwo/hadoop/incubator-ratis/ratis-server/target/test/data/e19600c7a0228b58/MiniRaftClusterWithSimulatedRpc/s3/group-E1192218-3981-4FC5-90BF-4CFB0D270F6B
>  failed.
>       at org.apache.ratis.util.ExitUtils.terminate(ExitUtils.java:88)
>       at 
> org.apache.ratis.server.storage.RaftLogWorker.run(RaftLogWorker.java:185)
>       at java.lang.Thread.run(Thread.java:748)
> Caused by: java.lang.IllegalStateException: File 
> /Users/szetszwo/hadoop/incubator-ratis/ratis-server/target/test/data/e19600c7a0228b58/MiniRaftClusterWithSimulatedRpc/s3/group-E1192218-3981-4FC5-90BF-4CFB0D270F6B/current/log_inprogress_0
>  does not exist.
>       at org.apache.ratis.util.Preconditions.assertTrue(Preconditions.java:60)
>       at 
> org.apache.ratis.server.storage.RaftLogWorker$FinalizeLogSegment.execute(RaftLogWorker.java:280)
>       at 
> org.apache.ratis.server.storage.RaftLogWorker.run(RaftLogWorker.java:155)
>       ... 1 more
> {code}



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

Reply via email to