mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
* volume: vacuum keeps a needle's own unexpired TTL on a volume without TTL Vacuum measured a needle's expiry against the volume TTL. On a volume without TTL that is zero, so every needle carrying its own TTL was dropped by the first vacuum while reads still served it. Fall back to the needle's own TTL and append time, the rule reads use. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * volume(rs): vacuum applies a needle's own TTL on a volume without TTL Rust vacuum kept every needle with its own TTL on a volume without TTL, even long after reads stopped serving it. Use the read path's expiry rule there, matching the Go vacuum. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * volume: check vacuum against a tally taken while loading the index The compacted-size check summed its expected bytes inside the loop that copies, so an entry the traversal never visited was missing from both sides and the check could not see it. Tally the live entries while replaying the .idx rows, count every copied, expired and unreadable needle, and fail when they do not add up to the snapshot. The explicit accounting also covers volumes with a TTL, so they are checked too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * volume(rs): check vacuum against a tally taken while loading the index Mirror the Go change: tally the live entries while replaying the .idx rows, count every copied, expired and unreadable needle, and fail when they do not add up to the snapshot, on volumes with a TTL too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * volume: treat a TTL flag without TTL bytes as no TTL A record can set the TTL flag and end before the TTL field, leaving Ttl nil. Checking such a needle's own TTL panicked in reads and, now, in vacuum on volumes without TTL. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * volume: log each TTL-expired needle vacuum drops Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * volume(rs): log each TTL-expired needle vacuum drops Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>