mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
e048246c0afa9c4043b85807004a26ee5ca131d6
* storage: capture-path intent schedules (RED) A cut that uploads writes an intent naming exactly its keys before the first upload and deletes its own intent after the confirmed CAS; no upload, no intent; a failed intent write uploads nothing; a failed upload or a refused CAS deletes the intent; an unknown CAS outcome keeps it until the next cut settles the proposal; a lost CAS response confirmed by re-read deletes it; a failed delete is retried at the next cut; other intents are untouched. The fake remote gains intent failure hooks and records written intents. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * storage: the capture path writes an intent before uploading and settles it A cut that uploads chunks now writes one intent naming exactly the keys it will upload, at the cut's base HEAD generation with the layer's epoch and holder. The intent is durable before the first upload; if it cannot be written, nothing is uploaded. A cut that only drops chunks writes none. The cut deletes only its own intent, once its outcome is settled: - after the HEAD CAS succeeds, or a HEAD re-read confirms its proposal; - on a clean abort: a failed upload, a refused admission, a fence, or a HEAD that moved past the CAS's base. An unknown CAS outcome keeps the intent with the pending proposal. The next cut deletes it once that proposal is settled, whether it landed or can never land. A failed delete never fails a settled cut; the next cut retries it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- 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%