[
https://issues.apache.org/jira/browse/RATIS-408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17757153#comment-17757153
]
Wei-Chiu Chuang commented on RATIS-408:
---------------------------------------
I don't think this is an issue any more.
> RaftLogWorker$WriteLog#execute fails if a node rejoins the raft ring after
> missing few transactions
> ---------------------------------------------------------------------------------------------------
>
> Key: RATIS-408
> URL: https://issues.apache.org/jira/browse/RATIS-408
> Project: Ratis
> Issue Type: Bug
> Components: raft-group
> Reporter: Nandakumar
> Priority: Major
>
> When we restart one of the node in the raft ring and in meantime if we have
> processed few transactions, the restarted node fails on
> {{RaftLogWorker$WriteLog#execute}}
> {code}
> 2018-11-12 20:09:13,299 ERROR storage.RaftLogWorker
> (ExitUtils.java:terminate(86)) - Terminating with exit status 1:
> 866cb1cc-2d3e-44a7-977f-8510870b42ef-RaftLogWorker failed.
> java.lang.IllegalStateException: lastWrittenIndex == 0, entry == term: 2
> configurationEntry {
> peers {
> id: "2552aca0-7b51-416e-8e52-1370fdcd5fd7"
> address: "xxx.xxx.xxx.xxx:61142"
> }
> peers {
> id: "542ec0a9-2bc5-4ac8-ad82-ba5d0fe2c2ae"
> address: "xxx.xxx.xxx.xxx:61145"
> }
> peers {
> id: "866cb1cc-2d3e-44a7-977f-8510870b42ef"
> address: "xxx.xxx.xxx.xxx:61154"
> }
> }
> at org.apache.ratis.util.Preconditions.assertTrue(Preconditions.java:60)
> at
> org.apache.ratis.server.storage.RaftLogWorker$WriteLog.execute(RaftLogWorker.java:351)
> at org.apache.ratis.server.storage.RaftLogWorker.run(RaftLogWorker.java:216)
> at java.lang.Thread.run(Thread.java:748)
> {code}
> At this time:
> lastWrittenIndex: 0
> entry.getIndex(): 0
> entry.getTerm(): 2
--
This message was sent by Atlassian Jira
(v8.20.10#820010)