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 Sze (Jira)" <ji...@apache.org> on 2020/11/03 09:12:00 UTC

[jira] [Resolved] (RATIS-1109) Notify StateMachine on Configuration change

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

Tsz-wo Sze resolved RATIS-1109.
-------------------------------
    Fix Version/s: 1.1.0
       Resolution: Fixed

I have merged the pull request.  Thanks, [~hanishakoneru]!

> Notify StateMachine on Configuration change
> -------------------------------------------
>
>                 Key: RATIS-1109
>                 URL: https://issues.apache.org/jira/browse/RATIS-1109
>             Project: Ratis
>          Issue Type: Bug
>          Components: StateMachine
>            Reporter: Hanisha Koneru
>            Assignee: Hanisha Koneru
>            Priority: Major
>             Fix For: 1.1.0
>
>
> When Ratis receives a Configuration change request (SetConfiguration), the StateMachine is only notified of index update.
> {code:java}
> CompletableFuture<Message> applyLogToStateMachine(LogEntryProto next) {
>   if (!next.hasStateMachineLogEntry()) {
>     stateMachine.notifyIndexUpdate(next.getTerm(), next.getIndex());
>   } else if (next.hasStateMachineLogEntry()) {
>   ......{code}
> This Jira aims to add a method in StateMachine interface to notify StateMachine about configuration change.



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