mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
068d30a6e074262d452b101cc3b3ca68cbbe970f
A workspace that moved A -> B -> A reattached A's surviving local root as an existing volume without claiming HEAD: it served A's stale image and its next (hash-mode) cut overwrote B's acknowledged, synced and published writes. A non-fresh attach now reads HEAD first; if another holder published it (Gen != 0, Holder != this holder), the attach fails closed with ErrChunkStaleLocalRoot wrapping storage.ErrChunkLayerFenced: the volume is not served and the attach is not retried. One log line and the status evidence name the volume, the local root, HEAD's holder, generation and epoch, and say to remove or quarantine the root; the next attach then starts fresh from HEAD. The deferred (authority-wait) attach records the same evidence. Recreating the root automatically is a follow-up. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.5%
Rust
7.9%
Shell
2.7%
templ
1.6%
Java
1%
Other
2%