mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
c1a986a63ecde8cf3486cf0a5e75d9cc20271a08
A deferred authority wait kept acting after a newer RecoverVolume. If that newer recovery failed, the old wait still attached the layer and set the backend operational once authority arrived, overriding the failed recovery. Each RecoverVolume of a walstore-chunk volume now takes the next recovery generation (under the per-volume serialization), and an authority wait carries the generation that registered it. A wait whose generation is no longer the latest exits. It checks on every tick, and again under the per-volume serialization right before attaching, so it never attaches or touches the backend for a superseded recovery. After a failed recovery the backend stays refused until a later recovery succeeds; that recovery attaches directly or starts its own wait. 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%