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

keep backup of datastore file, to help recover from corruption #24

Merged
merged 3 commits into from
Apr 25, 2022

Conversation

adam-p
Copy link
Collaborator

@adam-p adam-p commented Apr 20, 2022

We have seen data corruption in user feedback (usually in the form of JSON parsing failing, but sometimes in the form of impossible data values, we think). We can't be certain that this is due to file corruption, but it's certainly possible that out of millions of users, some will have file corruption issues each day. We believe (and hope) that having a backup datastore file brings that probability down greatly -- two files need to suffer the same improbable event at the same time.

The upgrade for users should be seamless. (And even downgrading should work, although it's not explicitly supported.)

@adam-p adam-p force-pushed the datastore-backup branch 2 times, most recently from 0919282 to 9d356a7 Compare April 20, 2022 18:41
We have seen data corruption in user feedback (usually in the form of JSON parsing failing, but sometimes in the form of impossible data values, we think). We can't be certain that this is due to file corruption, but it's certainly possible that out of millions of users, some will have file corruption issues each day. We believe (and hope) that having a backup datastore file brings that probability down greatly -- two files need to suffer the same improbable event at the same time.
@adam-p adam-p force-pushed the datastore-backup branch from 9d356a7 to 48df0a9 Compare April 21, 2022 00:12
@adam-p adam-p merged commit 66c6733 into Psiphon-Inc:next-release Apr 25, 2022
@adam-p adam-p deleted the datastore-backup branch April 25, 2022 20:51
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.

1 participant