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
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
Show replies