Conversation

Does anyone know what happens with a compressed file (specifically zstandard) if there is a bit flip in the file? Does it cause garbage decompression after that point? How tolerant is Zstandard with bit-rot? Might be worth exploring considering I have 250 TB compressed now.
4
7
Replying to
As I recall: libz is not fault tolerant. A single corruption breaks the stream at that point. If the corruption is 40% into the file, then you can decode the first 40% and the rest is corrupt. libbz2 and has the same issue.
1
Replying to
So if the bit rot wasn't severe, you might be able to detect garbage if you know what type of data to expect (JSON) and could start flipping bits around the corruption as a poor man's error correction. Is PAR2 still the best for this sort of thing?
1
Replying to
These days, I wouldn't expect a bit-flip error. I don't even see that anymore with streaming network data. (Many lower layer protocols have ECC so upper layers don't have errors.) But a corrupt sector (e.g., 512 sequential bytes that are corrupted) is a serious concern.
1
1