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

write some end to end tests to check that the behaviour is correct #26

Open
MarshallAsch opened this issue Aug 12, 2021 · 1 comment
Open

Comments

@MarshallAsch
Copy link
Owner

In addition to the unit tests that will be developed as part of #25 making some tests to make sure that network level behaviour is correct will also be important. These tests should consist of fully fledged simulations that are small and will test components such as timeouts actually getting triggered, or not getting triggered, etc.

  • lookup timeouts get triggered when set to a non 0 value
  • lookup timeouts never happen when set to 0
  • elections get triggered if a replica node is AWAL
  • a node will step down if its battery gets too low
  • a node will step down if it runs out of storage space
  • other tests that I can not currently think of
@MarshallAsch
Copy link
Owner Author

odd edge case found:

  • if the nodes are stationary / network connections are stable, then all nodes will become replica holder nodes.
  • inital replica election, while t < T second, or if the check election result happens (when t==T) before the table gets updated all nodes will automatically become replica nodes.

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