You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Kit Hui (JIRA)" <ji...@apache.org> on 2017/12/12 06:31:00 UTC
[jira] [Updated] (RATIS-124) RaftLog should be sync'ed on all the
entries appended but not the last entry
[ https://issues.apache.org/jira/browse/RATIS-124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kit Hui updated RATIS-124:
--------------------------
Attachment: r124_20171212a.patch
Used CompletableFuture to replace the logSync.
Updated the return type for RaftLog.append and appendEntries to CompletableFuture and List<CompletableFuture>.
Updated the method which called the function logSync.
> RaftLog should be sync'ed on all the entries appended but not the last entry
> ----------------------------------------------------------------------------
>
> Key: RATIS-124
> URL: https://issues.apache.org/jira/browse/RATIS-124
> Project: Ratis
> Issue Type: Improvement
> Reporter: Tsz Wo Nicholas Sze
> Assignee: Kit Hui
> Attachments: r124_20171212a.patch
>
>
> In RaftServerImpl.appendEntries, it first appends entries to RaftLog and then calls logSync(). It sync the last entry but not all the entries appended by this call.
> This is a problem if data are written to state machine asynchronously.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)