mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
681becfff0b83d0481885b79439e0c8a5809bc20
Review fixes for the snapshot catalog, fork and Detach: - Intents stay until the operation's outcome is settled. An exclusive create that fails is resolved by re-reading the entry: our entry confirms the publish; another entry means our create can never land (clean abort); a failed re-read or no entry leaves the outcome unknown (it may still land), so the intents are kept and the call reports outcome_unknown. A retry with the same request id settles it and removes every intent of the operation (by its holder tag). - Fork records its operation in the target's VOLUME (request id, source, snapshot, source gen, the SHA-256 of the snapshot's HEAD document and the original result). A retry resolves the target first: a completed fork replays the recorded result without reading the source (also after the source snapshot is deleting, or the target advanced); a request id reused with other parameters is target_exists; an incomplete fork resumes only if the snapshot still has the bound image. - An unresolved Detach mark (CAS outcome and re-read both failed) becomes a pending detach that every later capture, durability point and Detach settles first: applied means detached, not applied continues, a newer holder fences, still unreadable is ErrChunkCASOutcomeUnknown. A cut can no longer succeed at the pre-mark generation. Unresolved capture CAS outcomes now also wrap ErrChunkCASOutcomeUnknown. 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%