mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 10:37:23 +01:00
* storage: ask a delisted EC shard holder before rebuilding the shard A complete lookup that places a shard nowhere drops its holder from the map deletes route by. That holder may still answer, and may be the one that journaled a needle's delete, which the other shards cannot know. Keep it as a read hint that reads try before reconstructing and drop once it fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-volume: ask a delisted EC shard holder before rebuilding the shard Mirrors Go: a complete lookup that places a shard nowhere moves its cached holders to read hints, which fetch_one_interval tries before reconstructing and drops once they fail. Deletes and recovery keep using only the placed locations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-volume: test reads asking a delisted EC shard holder Mirrors the Go read-path tests: a delisted holder that journaled the delete answers before the local shards rebuild the needle, and an unreachable one is dropped while the read rebuilds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * storage: take only a deleted answer from a delisted EC shard holder A delete made after the delisting is journaled on a listed holder, so the delisted one still answers live. Returning its bytes skipped the reconstruction that asks the listed holders and finds that delete. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-volume: take only a deleted answer from a delisted EC shard holder Mirrors Go: a live answer from a read hint may predate a delete that went to a listed holder, so fetch_one_interval goes on to the direct read and reconstruction instead of returning it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * storage: bound the read asking a delisted EC shard holder A delisted holder may have stopped answering, and the hint read had no deadline over its stream. Only its deleted answer is used, so ask for one byte under a short deadline; a timeout drops the hint like any other failure. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * storage: drop only the read hint a failed EC read used A lookup can replace a shard's hint while a read of the old one is in flight; that read's failure then dropped the new hint. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-volume: bound the read asking a delisted EC shard holder Mirrors Go: ask the hint for one byte under EC_READ_HINT_TIMEOUT, since only its deleted answer is used; a timeout drops the hint like any other failure. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-volume: drop only the read hint a failed EC read used Mirrors Go: a lookup can replace a shard's hint while a read of the old one is in flight, and that read's failure dropped the new hint. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-volume: keep fetch_one_interval's doc comment on the function Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>