Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RATIS-1109. Notify StateMachine on Configuration change #251

Merged
merged 1 commit into from
Nov 3, 2020

Conversation

hanishakoneru
Copy link
Contributor

What changes were proposed in this pull request?

When Ratis receives a Configuration change request (SetConfiguration), the StateMachine is only notified of index update.

CompletableFuture applyLogToStateMachine(LogEntryProto next) {
if (!next.hasStateMachineLogEntry()) {
stateMachine.notifyIndexUpdate(next.getTerm(), next.getIndex());
} else if (next.hasStateMachineLogEntry()) {
......
This Jira aims to add a method in StateMachine interface to notify StateMachine about configuration change.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/RATIS-1109

How was this patch tested?

No unit test. Tested on Ozone cluster.

Copy link
Contributor

@szetszwo szetszwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 the change looks good.

@szetszwo szetszwo merged commit fbdcccc into apache:master Nov 3, 2020
symious pushed a commit to symious/ratis that referenced this pull request Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants