Details
-
Improvement
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
Description
Saved caches are not covered by a checksum. We should at least emit a checksum. My suggestion is a large checksum of the whole file (convenient offline validation), and then smaller per record checksums after each record is written (possibly a subset of the incrementally maintained larger checksum).
I wouldn't go for anything fancy to try to recover from corruption since it is just a saved cache. If corruption is detected while reading I would just have it bail out. I would rather have less code to review and test in this instance.
Attachments
Attachments
Issue Links
- blocks
-
CASSANDRA-9264 Cassandra should not persist files without checksums
- Open
- breaks
-
CASSANDRA-10155 2i key cache load fails
- Resolved
- supercedes
-
CASSANDRA-9120 OutOfMemoryError when read auto-saved cache (probably broken)
- Resolved