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 2018/12/03 22:15:00 UTC

[jira] [Commented] (RATIS-326) Introduce ClearStateMachineData API in StateMachine interface in Ratis

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

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

Thanks [~shashikant] for working on this.
- How about passing an index instead of {{Collection<LogEntryProto> entries}} in clearStateMachineData?
-* Please remove "throws IOException" from clearStateMachineData.  It should complete exceptionally for exceptions.
-* The default should return CompletableFuture.completedFuture(null) instead of null.


> Introduce ClearStateMachineData API in StateMachine interface in Ratis
> ----------------------------------------------------------------------
>
>                 Key: RATIS-326
>                 URL: https://issues.apache.org/jira/browse/RATIS-326
>             Project: Ratis
>          Issue Type: Improvement
>          Components: server
>            Reporter: Shashikant Banerjee
>            Assignee: Shashikant Banerjee
>            Priority: Major
>         Attachments: RATIS-326.000.patch
>
>
> When a follower truncates its log entry in case there is a mismatch between the received log entry and its own stored entry, we should also remove the stateMachine data written as a part of appending the stored log entry on the follower.



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