Hanisha Koneru created RATIS-1109:
-------------------------------------
Summary: 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
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)