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 2019/06/05 03:41:00 UTC

[jira] [Updated] (RATIS-328) Follower should update StateMachine with leader's commit after applying log

     [ https://issues.apache.org/jira/browse/RATIS-328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tsz Wo Nicholas Sze updated RATIS-328:
--------------------------------------
    Target Version/s:   (was: 0.3.0)
       Fix Version/s:     (was: 0.3.0)

> Follower should update StateMachine with leader's commit after applying log
> ---------------------------------------------------------------------------
>
>                 Key: RATIS-328
>                 URL: https://issues.apache.org/jira/browse/RATIS-328
>             Project: Ratis
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 0.3.0
>            Reporter: Mukul Kumar Singh
>            Assignee: Mukul Kumar Singh
>            Priority: Major
>              Labels: ozone
>
> Currently for a follower, statemachine is updated right after appending the entries in the in-memory log. This complicates the state machine implementation. This can be simplified by updating the state machine after applying the log completely.
> {code}
> RaftServerImpl.java#appendEntriesAsync
> state.updateStatemachine(leaderCommit, currentTerm);
> {code}



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