You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "runzhiwang (Jira)" <ji...@apache.org> on 2020/12/22 02:42:00 UTC

[jira] [Resolved] (RATIS-1256) Leader updateCommit should use the updated index

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

runzhiwang resolved RATIS-1256.
-------------------------------
    Resolution: Fixed

> Leader updateCommit should use the updated index
> ------------------------------------------------
>
>                 Key: RATIS-1256
>                 URL: https://issues.apache.org/jira/browse/RATIS-1256
>             Project: Ratis
>          Issue Type: Bug
>          Components: server
>            Reporter: Tsz-wo Sze
>            Assignee: Tsz-wo Sze
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> In LeaderStateImpl.updateCommit, it gets entriesToCommit using the majority index and then updateCommitIndex.  However, updateCommitIndex may update to a lower index than the majority index.  Therefore, entriesToCommit may contain non-committed entries.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)