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

Leader starts replication if non-applied entries contain only NoOps #171

Merged

Conversation

xirc
Copy link
Contributor

@xirc xirc commented Aug 23, 2022

Closes #170

RaftActor (Leader) will start replication if non-applied entries contain only NoOps. An entity (ReplicationActor or ReplicatedEntity) doesn't need to apply NoOp to itself since NoOp won't change the entity's actual state. RaftActor (Follower) also doesn't send Replica to its entity for EntityEvent(..., NoOp).

@xirc xirc added this to the v2.1.1 milestone Aug 23, 2022
@xirc xirc marked this pull request as ready for review August 23, 2022 02:57
@xirc xirc requested a review from negokaz August 23, 2022 02:57
Copy link
Contributor

@negokaz negokaz left a comment

Choose a reason for hiding this comment

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

Great! LGTM 👍

@negokaz negokaz merged commit 457f529 into master Aug 23, 2022
@negokaz negokaz deleted the start-replication-if-non-applied-entries-have-only-noops branch August 23, 2022 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Leader continued replying with ReplicationFailed
2 participants