-
-
Notifications
You must be signed in to change notification settings - Fork 314
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
Verify that snapshots, recovery from snapshots works #3219
Comments
By "verify" do you mean writing automated tests? Would be very nice if practical. |
I want to verify it manually. I think there are automated tests for this, so if manual verification fails, then I'll need to see why those didn't catch it. |
I set up the sync server (since local sync does not use snapshots) with Then I removed the local SQLite DB and ran
So, that all looks good! |
Dumping the snapshot after it's downloaded from the server shows the expected:
That's stored with flate2 which is probably why it was so small. |
If I delete the snapshot on the server:
but
I think that makes sense -- it looks like an empty server. We could probably do better here (#3233), but this is operating as designed. A subsequent
A similar thing happens if I delete a version from the server that is newer than the latest snapshot. I think this is all operating as designed. |
In working on #3185, I noticed that snapshots are very small. Do they contain all of the required data?
Let's also verify that setting up a new replica from a snapshot works, and that it fails as expected if there is no snapshot or versions are missing.
The text was updated successfully, but these errors were encountered: