-
Notifications
You must be signed in to change notification settings - Fork 136
Add crc data checksum to uv Snapshot #201
Comments
FWIW the rational behind that was that the application should be entirely responsible for what is contained in the |
Sometimes we receive issues where one of the snapshot files seems to cause issues, and it's difficult to pinpoint where it went wrong. If we know if what we read from disk is the same as what we received from the application it could already eliminate a potential source of error. That was a bit my reasoning, don't know if you think it makes sense. |
Do we have more specific data about the issues we saw? Like a copy of the |
Yes, we have one. Not sure if I can share though (if you're interested), will check. |
It's okay not to share, I wouldn't have time to check it, just wondering if you have more details about what's wrong with the file, e.g. if you used a debugger to understand where SQLite fails when opening it (assuming that's what's happening). |
A dump of the db reveals errors like this:
and
|
This is when trying to load the latest snapshot, the oldest snapshot is fine and is also +- 0.7MB bigger (5.5MB vs 4.8MB, not necessarily relevant info). |
Interesting that a couple of rows where returned, so the file is not complete garbage. I guess the database schema is not corrupted? |
Yes, that runs fine. |
Checksum has been added as part of #207. |
If I'm not mistaken we calculate crc checksums for the
snapshot.meta
andsegment
files, but perform no integrity checking on thesnapshot
data files. This should be introduced to detect disk corruptions.The text was updated successfully, but these errors were encountered: