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

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

I see the problem now: it should reply appendEntries with the nextIndex of the 
given entries (if it is non-empty) but not nextIndex of the log.

> Raft log index on the follower should be applied to state machine only after 
> writing the log
> --------------------------------------------------------------------------------------------
>
>                 Key: RATIS-341
>                 URL: https://issues.apache.org/jira/browse/RATIS-341
>             Project: Ratis
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 0.3.0
>            Reporter: Mukul Kumar Singh
>            Assignee: Mukul Kumar Singh
>            Priority: Major
>             Fix For: 0.3.0
>
>         Attachments: RATIS-341.003.patch, RATIS-341.003_committed.patch
>
>
> In follower, RaftServerImpl#appendEntriesAsync, entries should only be 
> applied to state machine
> only after writing the log to the state machine.



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

Reply via email to