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/02/10 23:46:00 UTC

[jira] [Commented] (RATIS-426) StateMachine should be notified about index updates when confentry/no op entries are processed

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

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

+1 patch looks good.  Thanks, [~msingh].

> StateMachine should be notified about index updates when confentry/no op entries are processed
> ----------------------------------------------------------------------------------------------
>
>                 Key: RATIS-426
>                 URL: https://issues.apache.org/jira/browse/RATIS-426
>             Project: Ratis
>          Issue Type: Bug
>          Components: server
>            Reporter: Mukul Kumar Singh
>            Assignee: Mukul Kumar Singh
>            Priority: Major
>         Attachments: RATIS-426.001.patch, RATIS-426.002.patch
>
>
> In Ratis, 2 types of log entries exists, it can either of type StateMachineLogEntryProto or RaftConfigurationProto. Only StateMachineLogEntryProto is processed by the state machine, however RaftConfigurationProto is processed internally. In certain cases, state machine might like to maintain the sequence of events being processed by it i.e. ContainerStateMachine for Ozone. In such cases State machine should be notified of index updates while processing RaftConfigurationProto.
> {code}
>   oneof LogEntryBody {
>     StateMachineLogEntryProto stateMachineLogEntry = 3;
>     RaftConfigurationProto configurationEntry = 4;
>   }
> {code}



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