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

Add test: Log entry agreement for network partition 2 #40

Open
suhasks123 opened this issue Feb 20, 2021 · 0 comments
Open

Add test: Log entry agreement for network partition 2 #40

suhasks123 opened this issue Feb 20, 2021 · 0 comments

Comments

@suhasks123
Copy link
Collaborator

Overview:

This should be implemented after issue #38 has been completed.

This is an extension to Log entry agreement for network partition 1, where the leader that is about to be partitioned has diverged from the main system in terms of the log entries.

Procedure:

  • Simulate a situation where a network partition has happened for the leader, after which it adds new log entries and the remaining nodes have selected a new leader.
  • Add new log entries to the system with the new leader which will be committed because of the majority.
  • This means that the log entries have diverged.
  • Reconnect the former leader back into the system and wait for the log entries to be synchronized.
  • Then check if all replicas agree on the new log entries added after the network partition of the former leader.
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

No branches or pull requests

1 participant