mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
4f2e85fea089072f8c452261ddfaf974e2e4320a
POST /chunk/cut, /chunk/snapshot, /chunk/snapshot/delete, /chunk/detach and
GET /chunk/snapshots (B9 W2 §2.1-§2.2, §3.1-§3.4, §3.6), mounted only
after EnableChunkControlEndpoint and wired by SetChunkControl:
- loopback-only like the listener; JSON request bodies (unknown fields are
refused) and ?volume= for the list; volume_not_served for another volume
and not_chunk_volume until a control is wired;
- success bodies carry exactly the spec's field names (§3.1-§3.4, §3.6);
- failures answer {"code","message","retryable"} with the §2.2 code and
status, plus the 2026-11-15 rulings: awaiting_assignment (409, retryable)
for a layer that waits for the master's assignment, not_primary not
retryable, internal (500) for anything unmapped; transport errors
(method, client, malformed request) stay plain text as on the rest of
the listener;
- long operations run under min(timeoutMs, OpDeadline).
NewChunkControl serves the routes from the durable provider (cut, detach)
and the catalog (snapshots): Snapshot validates the name and request id
before it cuts, then stores the HEAD that cut installed; Cut with minLSN
fails unless the cut reaches it. The cut statistics fields read zero until
W3 fills them.
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%