-
Notifications
You must be signed in to change notification settings - Fork 24
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
fix #34, record abandoned reason for conflicting entry logs #36
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The functional changes look good. I think we need to work on the naming. Any ideas other than ConflictingEntry
? The word Entry
in there is redundant.
Also, let's reword the explanatory comment in the enum and use triple slash ///
instead of //
in TransitionAbandonedReason
comments so that they show up in rust docs.
little_raft/src/state_machine.rs
Outdated
@@ -26,6 +26,10 @@ pub enum TransitionAbandonedReason { | |||
// NotLeader transitions have been abandoned because the replica is not | |||
// the cluster leader. | |||
NotLeader, | |||
|
|||
// ConflictingEntry entry logs in followers that are inconsistent with the | |||
// leader's. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_name_ uncommitted transitions are abandoned because they don't match the consensus achieved by the majority of the cluster.
How about |
|
@andreev-io Fixed. |
Thank you for your contributions @suzaku! |
No description provided.