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

Making locks_leader pass locks-test #36

Merged
merged 1 commit into from
Dec 13, 2017
Merged

Conversation

uwiger
Copy link
Owner

@uwiger uwiger commented Dec 11, 2017

Ref. https://github.com/ten0s/locks-test (see issue #30 )

Fixes include adding an election ref value, to sync with cands.
This value is kept when the leader enters the safe loop.
Also, an 'assert_leader' message is introduced, to ensure that
candidates are kicked out of the safe loop when a leader acquires
a new lock and remains the leader.

Also, a locks_agent:async_await_all_locks/1 function was added
to ensure that the leader gets told that it has all locks in a
contested scenario.

Ref. https://github.com/ten0s/locks-test

Fixes include adding an election ref value, to sync with cands.
This value is kept when the leader enters the safe loop.
Also, an 'assert_leader' message is introduced, to ensure that
candidates are kicked out of the safe loop when a leader acquires
a new lock and remains the leader.

Also, a locks_agent:async_await_all_locks/1 function was added
to ensure that the leader gets told that it has all locks in a
contested scenario.
@uwiger uwiger merged commit b81c12b into master Dec 13, 2017
@uwiger uwiger deleted the uw-locks-test-scenario branch December 13, 2017 07:39
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.

1 participant