From dd198e27c3b883ae70d350bda2ff18ddcce2298b Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 5 Dec 2026 13:44:33 -0800 Subject: [PATCH] seaweed-block: document the failover caller-deadline exit The failover help, the v1.1.x legacy table and the classification design note name the caller deadline before send next to the unsent remote failure as the two failover cases that keep exit 3. Co-Authored-By: Claude Opus 5.5 --- seaweed-block/cmd/sw-block/failover.go | 7 ++++--- seaweed-block/docs/design/answer-classification.md | 2 +- seaweed-block/docs/releases/v1.1.2.md | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/seaweed-block/cmd/sw-block/failover.go b/seaweed-block/cmd/sw-block/failover.go index fb69c755ec..d781eb90b6 100644 --- a/seaweed-block/cmd/sw-block/failover.go +++ b/seaweed-block/cmd/sw-block/failover.go @@ -51,9 +51,10 @@ SW_BLOCK_TLS_CA, all three; without them the command refuses before dialing. Exit: 0 moved; 1 definite precondition refusal, caller cancellation before sending, or the line did not move; 2 bad arguments or a server argument -refusal; 3 outcome unknown (or an unsent connection failure): read the current -line with sw-block ops volumes before another move; 4 unproven integrity -readout; 5 authentication rejection; 78 local credential/configuration error. +refusal; 3 outcome unknown (or an unsent connection failure or caller +deadline): read the current line with sw-block ops volumes before another +move; 4 unproven integrity readout; 5 authentication rejection; 78 local +credential/configuration error. ` func runOpsFailover(args []string, stdout, stderr io.Writer) int { diff --git a/seaweed-block/docs/design/answer-classification.md b/seaweed-block/docs/design/answer-classification.md index 4b56cc0c5e..23fdd11630 100644 --- a/seaweed-block/docs/design/answer-classification.md +++ b/seaweed-block/docs/design/answer-classification.md @@ -124,7 +124,7 @@ server argument refusals remain distinct from credential validation. `LegacyExits()` is the complete exception inventory. The documented `ops volume create` and read-only `ops volume resolve` exceptions retain 75 for UNKNOWN and 78 for definite refusal. Cluster finalize/retire typed -precondition refusal retains 2. Incomplete verify UNKNOWN retains 1 (3 means completed findings); failover unsent remote failure retains 3 with read-before-another-move recovery. Every exception is removed in v1.2. Typed non-retryable remote-unavailable answers are definite refusals, never exit 75. +precondition refusal retains 2. Incomplete verify UNKNOWN retains 1 (3 means completed findings); failover unsent remote failure and caller deadline before send retain 3 with read-before-another-move recovery. Every exception is removed in v1.2. Typed non-retryable remote-unavailable answers are definite refusals, never exit 75. The create exception is safe only for identical name, geometry and placement: `FileStore.CreateVolume` returns the existing compatible record and layout diff --git a/seaweed-block/docs/releases/v1.1.2.md b/seaweed-block/docs/releases/v1.1.2.md index b398e2c099..acbc75dc04 100644 --- a/seaweed-block/docs/releases/v1.1.2.md +++ b/seaweed-block/docs/releases/v1.1.2.md @@ -92,6 +92,7 @@ independent test row per entry. These exceptions are removed in v1.2: | Command | Class | Legacy exit | Documented reason | | --- | --- | --- | --- | | `ops failover` | Proven unsent remote failure | 3 | Read the current authority line before another move; Recover, not blind resend. | +| `ops failover` | Caller deadline before send | 3 | Same read-before-another-move recovery as an unsent remote failure. | | `ops chunk verify` incomplete answer | UNKNOWN | 1 | Exit 3 means a completed scan with findings; JSON keeps the failure class. | | `ops volume create` | UNKNOWN | 75 | Identical name, geometry and placement reuse the compatible recorded identity or refuse a conflict; never change inputs during recovery. | | `ops volume create` | Server argument refusal | 78 | The standalone create contract documents definite refusal as 78; local syntax remains 2. |