You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Rajeshbabu Chintaguntla (JIRA)" <ji...@apache.org> on 2019/01/24 16:37:00 UTC

[jira] [Created] (RATIS-475) [Log Service] Writing data from Log Stream failing with IllegalStateException

Rajeshbabu Chintaguntla created RATIS-475:
---------------------------------------------

             Summary: [Log Service] Writing data from Log Stream failing with IllegalStateException
                 Key: RATIS-475
                 URL: https://issues.apache.org/jira/browse/RATIS-475
             Project: Ratis
          Issue Type: Bug
          Components: LogService
            Reporter: Rajeshbabu Chintaguntla
            Assignee: Rajeshbabu Chintaguntla


Written an app to create multiple logs and write data to the logs. At some point of time writing to log failing with following error.
{noformat}
2019-01-24 21:59:57 INFO  RaftServerProxy:298 - localhost_9953: start RPC server
2019-01-24 21:59:57 ERROR RaftServerImpl:1119 - localhost_9953: applyTransaction failed for index:1 proto:(t:1, i:1), STATEMACHINELOGENTRY, client-03BB6CE48FC1, cid=12
2019-01-24 21:59:57 ERROR StateMachineUpdater:133 - Terminating with exit status 2: StateMachineUpdater-localhost_9953: the StateMachineUpdater hits Throwable
java.lang.IllegalStateException: localhost_9953: Failed updateLastAppliedTermIndex: newTI = (t:1, i:1) < oldTI = (t:2, i:1)
	at org.apache.ratis.util.Preconditions.assertTrue(Preconditions.java:72)
	at org.apache.ratis.statemachine.impl.BaseStateMachine.updateLastAppliedTermIndex(BaseStateMachine.java:116)
	at org.apache.ratis.logservice.server.LogStateMachine.processAppendRequest(LogStateMachine.java:324)
	at org.apache.ratis.logservice.server.LogStateMachine.applyTransaction(LogStateMachine.java:356)
	at org.apache.ratis.server.impl.RaftServerImpl.applyLogToStateMachine(RaftServerImpl.java:1116)
	at org.apache.ratis.server.impl.StateMachineUpdater.run(StateMachineUpdater.java:169)
	at java.lang.Thread.run(Thread.java:745)
{noformat}



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