Files
seaweedfs/weed/storage
731431af72 export: fail tar exports on unreadable live needle bodies (#13377)
* export: fail the tar export on an unreadable live needle

* export: honor -newer after needle body read errors

Skip a damaged record when its decoded modification time excludes it from the tar. Publish the date flag only after decoding the timestamp so incomplete metadata still fails the export.

* needle: keep reading a record whose fields end before its timestamp

The last-modified field was decoded without the length check the other
optional fields keep, so a record whose bytes end right after its flags,
name or mime now failed as corrupted. Older reads, and the Rust volume
server, read it without a timestamp. Keep the check; the flag stays off
until the timestamp is decoded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 10:34:31 -08:00
..