Skip to content

Zen with terms #30

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

Merged
merged 2 commits into from
Apr 5, 2018
Merged

Zen with terms #30

merged 2 commits into from
Apr 5, 2018

Conversation

ywelsch
Copy link
Contributor

@ywelsch ywelsch commented Apr 5, 2018

This is an alternative specification to https://github.com/elastic/elasticsearch-formal-models/blob/master/cluster/tla/consensus.tla that resembles existing Zen more closely in that it does not require force-publishing the last accepted value upon election, but limits this only to the configuration.

@ywelsch ywelsch requested a review from DaveCTurner April 5, 2018 08:44
Copy link
Contributor

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

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

I left a handful of thoughts about names, but the rest looks good.

VARIABLE joinVotes
VARIABLE allowElection
VARIABLE electionWon
VARIABLE publishVersion
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder whether lastPublishedVersion would be a better name, in parallel with lastPublishedConfiguration?


\* node state (map from node id to state)
VARIABLE currentTerm
VARIABLE currentConfiguration \* committed config
Copy link
Contributor

Choose a reason for hiding this comment

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

How about lastCommittedConfiguration, given the comment?

VARIABLE lastAcceptedValue
VARIABLE lastAcceptedConfiguration
VARIABLE joinVotes
VARIABLE allowElection
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps startedJoinSinceLastReboot?

@ywelsch
Copy link
Contributor Author

ywelsch commented Apr 5, 2018

Makes sense. Thanks @DaveCTurner

Copy link
Contributor

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

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

LGTM Thanks @ywelsch

@ywelsch ywelsch merged commit 6004e82 into elastic:master Apr 5, 2018
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.

2 participants