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

spec for joint consensus #26

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

spec for joint consensus #26

wants to merge 4 commits into from

Conversation

nolouch
Copy link
Member

@nolouch nolouch commented Oct 30, 2018

Chapter 6 in raft paper introduce the joint consensus, this is a TLA+ part for it. and it is modified from the origin raft.tla

@nolouch nolouch requested a review from siddontang November 8, 2018 03:01

\* The members of the server at that time.
VARIABLE voters
VARIABLE nextVoters

Choose a reason for hiding this comment

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

Do we need to consider learners? It's possible to promote a learner, remove them, or add them during Joint Consensus.

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe later. It will increase the state space.


\* Get the maximum config from log[1..l].
GetMaxConfigIndex(i, l) ==
LET chonfigIndexes == {index \in 1..l: log[i][index].type = ConfigEntry}

Choose a reason for hiding this comment

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

I think you mispelled configIndexes here.

@IANTHEREAL
Copy link
Contributor

IANTHEREAL commented Nov 17, 2018

don't leave description empty, I don't know what you want to do @nolouch

\* The candidate the server voted for in its current term, or
\* Nil if it hasn't voted for any.
VARIABLE votedFor
serverVars == <<currentTerm, state, votedFor,allServers, voters,nextVoters>>
Copy link
Member

Choose a reason for hiding this comment

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

voter, nextVoters

Signed-off-by: nolouch <nolouch@gmail.com>
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.

4 participants