mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 18:47:20 +01:00
Move-back tests for the chunk provider. The existing local root of a workspace that moved A -> B -> A must not attach: no reads or writes, no cut, HEAD unchanged, a typed ErrChunkStaleLocalRoot (fenced) and status evidence that says to remove or quarantine the root, also when the attach is deferred until the assignment arrives. After the root is removed the fresh path serves B's image. Controls that pass today: a same-holder reattach at a newer epoch, an existing root with no HEAD, and a holder whose HEAD a newer epoch took over never cuts over it. ErrChunkStaleLocalRoot is declared so the tests build; nothing returns it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>