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

Fix to order inversion between commit and user threads #215

Merged
merged 1 commit into from
May 19, 2021

Conversation

greensky00
Copy link
Contributor

  • If the commit thread executes the state machine operation before the
    user thread (in the middle of append_entries) installs the commit
    element, the user's callback function can be missed.

  • Commit thread should make sure that if order inversion is detected,
    it should let user thread invoke the callback, by generating the
    corresponding commit element initialized with the state machine result.

* If the commit thread executes the state machine operation before the
user thread (in the middle of `append_entries`) installs the commit
element, the user's callback function can be missed.

* Commit thread should make sure that if order inversion is detected,
it should let user thread invoke the callback, by generating the
corresponding commit element initialized with the state machine result.
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