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 tests for checkpoint service #93

Open
gavin-norman-sociomantic opened this issue Apr 23, 2019 · 0 comments
Open

Add tests for checkpoint service #93

gavin-norman-sociomantic opened this issue Apr 23, 2019 · 0 comments

Comments

@gavin-norman-sociomantic
Copy link

gavin-norman-sociomantic commented Apr 23, 2019

The checkpoint service is a feature that needs to avoid regressions. There are several tests that can be added, from which some are very easy and some are more complicated to implement.

Easy:

  • Write into the multiple channels and expect that all buckets appear in the checkpoint file exactly one time
  • Confirm that the file doesn't exist on the clean exit of the node
  • Start the node with the data and checkpoint file and expect buckets truncated on the right spots

Medium:

  • Write into the channels distributed around for more than < "number of cached files" constant > buckets worth of data, so some buckets gets closed and confirm that they appear immidiately after opening the new channel, and after that expect that they are not found there

Hard:

  • Open new buckets while the node is inside checkpoint dump cycle, so the checkpoints are scheduled to be dumped at the end of the cycle
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