mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
d7d17183584752785f2f96e48fc1637216d90d09
A ReplicationVolume orders writes from the store's next LSN, captured when it is built. On a restored walstore-chunk host the frontier seed moves that LSN to HEAD.remote_lsn+1 later, during the deferred attach. The resequencer then waited forever for the LSNs below it, and writes and flushes hung. Whoever moves the next LSN now tells every component that cached it: - ReplicationVolume.RebaseShipLSN(lsn) moves the ship order forward. It is refused while any write is pending or in flight, never dropping one, and never moves backwards; an equal LSN is a no-op. - The provider calls it through the backend's observer right after SeedChunkFrontier, before the layer attaches and the volume serves I/O. - StorageBackend.SetWriteObserver rebases a newly installed observer to the store's next LSN, covering a seed that landed before the observer was installed (blockvolume installs it after SetReplicationVolume, while the attach is still deferred). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.6%
Rust
7.8%
Shell
2.7%
templ
1.6%
Java
1%
Other
2%