mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 10:37:23 +01:00
* shell: refuse a replica trim that would drop a needle no survivor holds The -doCheck pass before volume.fix.replication deletes a surplus replica compares it with each survivor in turn without resurrecting absent needles, so a needle live on the doomed replica and missing on every survivor passed the check. Trimming then deleted its only copy if it was a missed write. Count, across all survivors, the live needles none of them holds live or deleted, and skip the trim when there are any. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * shell: count a remote-tier survivor's delete as covering the needle A remote-tier replica records its deletes with offset zero, and the filtered index load drops those keys, so the trim check saw the needle as held by no survivor and refused the trim on every run. Walk survivor indexes unfiltered: any entry for the key covers it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * shell: keep the trim's final survivor check under test The coverage check reads each survivor's index a second time, so the survivor that disappeared after its first index read now failed that read and the final VolumeStatus check was never reached. Make it disappear after the second read and require the status check to run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>