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

Support for single peer cluster #144

Closed

Conversation

tillrohrmann
Copy link

@tillrohrmann tillrohrmann commented Dec 6, 2024

Please make sure these boxes are checked, before submitting a new PR.

  • You ran the local CI checker with ./check.sh with no errors
  • You reference which issue is being closed in the PR text (if applicable)

Issues

Fix #143.

Changes

This commit enables OmniPaxos to run with a single peer. What needed to
be changed is to call the proper handle methods instead of directly
updating the LeaderState with one's own promise and accepted index. By
using the handle methods, we ensure that all required actions (e.g. updating
the decided index, becoming a leader) are properly triggered.

These changes were tested by running the following tests with a single node:

  • ble_test
  • consensus_test
  • unicache_test
  • flexible_quorum_test
  • trim_test
  • batching_test

The other integration tests require more than 1 peer in order to test follower
behavior.

This commit enables OmniPaxos to run with a single peer. What needed to
be changed is to call the proper handle methods instead of directly
updating the LeaderState with one's own promise and accepted index. By
using the handle methods, we ensure that all required actions (e.g. updating
the decided index, becoming a leader) are properly triggered.

These changes were tested by running the following tests with a single node:

* ble_test
* consensus_test
* unicache_test
* flexible_quorum_test
* trim_test
* batching_test

The other integration tests require more than 1 peer in order to test follower
behavior.
@haraldng
Copy link
Owner

We should add this feature when we have implemented bootstrapping, see #143 .

@haraldng haraldng closed this Dec 13, 2024
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.

Feature request: bootstrapping omnipaxos
2 participants