mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
273ca809d88deb8b50f81decd45c2aa0ef8444f5
SetWriteObserver published the observer first and only logged a refused ship-LSN rebase, so the volume kept serving writes its observer would mis-order. Now: - SetWriteObserver rebases an LSN-ordering observer to the store's next LSN before installing it. If the rebase is refused, the observer is not installed and the error is returned. The backend also records the fault and refuses every I/O until an install succeeds, so a later attach that marks the volume operational cannot reopen it. blockvolume reports the error. - The frontier seed and its observer rebase run in one critical section with observer installs (observerMu). Whichever runs second sees the other's result; a seed landing between an install's rebase and its publication can no longer leave the observer on the old LSN. A refused rebase after the seed records the same fault. - RebaseShipLSN documents that it moves only the ordering cursor: entries already dispatched to peer queues carry lower LSNs and are untouched. The composition test checks the install error. 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%