mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 18:47:20 +01:00
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>