mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
c0297da05ae9df37b901d53e2f7d2e1317948585
On a graceful stop the chunk layer is detached first and the master marks the lease revoking right after, but the host's lease guard only learned of the revocation on its next renewal, up to 10 s later (3-6 s measured), and the guest's writes were refused all that time. A detach now calls an optional provider hook, OnChunkDetach, which the blockvolume host connects to its lease guard: the guard renews at once and then every 250 ms until it fences. The pending mark is never cleared; a detached host does not serve again under the same guard. The hook fires only on the detach path, not on the lease-fence StopIO. 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%