mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
70457de5fdfb38ef8d4cb6ad26efb3892522c761
The chunk layer attached right after local recovery. In blockvolume that is while the host still blocks the master's assignment, so the layer was bound to epoch and endpoint version 0. After the assignment replayed, the host became healthy but every cut was refused against that 0/0 lineage. The layer now attaches only when the projection names the volume, is healthy and carries a master-assigned epoch. RecoverVolume attaches at once when that holds. Otherwise it reports the volume recovered, keeps its I/O refused, and starts one authority wait per volume. The wait is registered with Close like a recovery; it attaches when the assignment is applied, then makes the volume operational, and retries a failed attempt. Capture operations report ErrChunkAwaitingAuthority meanwhile. The lineage that later cuts are checked against is the one at that attach. The attach's remote calls now also end with RecoverVolume's caller context, besides provider Close. The attached layer is not bound to that context: later captures keep working after it ends. New control: Close settles an in-flight deferred attach. 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%