From 455139a7f04324897e1b55941d6bbc2625943e4e Mon Sep 17 00:00:00 2001 From: pingqiu Date: Sat, 5 Dec 2026 17:52:40 -0800 Subject: [PATCH] docs(block): clarify plain detach outcome recovery --- seaweed-block/docs/releases/v1.1.1.md | 17 +++++++++++++++-- seaweed-block/docs/releases/v1.1.2.md | 17 +++++++++++++++-- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/seaweed-block/docs/releases/v1.1.1.md b/seaweed-block/docs/releases/v1.1.1.md index 41bc16f6bc..5486711e41 100644 --- a/seaweed-block/docs/releases/v1.1.1.md +++ b/seaweed-block/docs/releases/v1.1.1.md @@ -7,8 +7,21 @@ v1.1.1 is a fix release of the v1.1 line. None of its changes alters a stored fo ## Known issue: plain detach can abort during a periodic checkpoint - **Trigger:** a periodic checkpoint's already-issued HEAD update lands while `sw-block ops chunk detach --plain` is stopping background work. -- **Effect:** the detach aborts without publishing a sealed HEAD, and the volume keeps serving on the same holder. The CLI can report `outcome_unknown` (exit 3) instead of a definite abort. -- **What to do:** if the holder confirms `detach_aborted` and the volume is still serving on the same holder, retry the plain detach. Keep the operation id printed by the CLI when investigating an unknown outcome; `outcome_unknown` alone does not establish that the detach aborted. A definite retryable CLI answer for this case is planned for v1.1.3. +- **Effect:** a confirmed `detach_aborted` means no sealed HEAD was published and serving resumed on the same holder. The CLI can instead report `outcome_unknown` (exit 3); that answer alone proves neither an abort nor resumed guest I/O. If the holder's detach outcome is still unresolved, I/O stays stopped while it settles. +- **What to do:** confirm the original handle before treating this as a retryable abort. On the holder's host, query the same status address and volume used by the detach, with the id printed by the CLI: + + ```sh + STATUS_ADDR='' + VOLUME_ID='' + CUT_ID='' + curl --silent --show-error --max-time 5 --get \ + --data-urlencode "volumeID=$VOLUME_ID" \ + --data-urlencode "cutID=$CUT_ID" \ + --write-out '\nHTTP %{http_code}\n' \ + "http://$STATUS_ADDR/chunk/cut" + ``` + + HTTP 409 with `apiVersion: 1`, the same `cutID`, `code: "detach_aborted"` and `retryable: true` confirms this abort; retry the plain detach. This GET does not start another operation. Handles are transient: HTTP 404 `unknown_cut_id` (including after expiry or a holder restart), a failed query, or an unsettled answer does not confirm an abort. In that case keep guest I/O stopped, preserve the CLI output and holder logs, and [settle the unknown detach outcome](../volume-lifecycle.md#symptoms) before resuming I/O or moving the volume. A definite retryable CLI answer for this case is planned for v1.1.3. ## Known issue: `sw-block mini` as a non-root user diff --git a/seaweed-block/docs/releases/v1.1.2.md b/seaweed-block/docs/releases/v1.1.2.md index 005ff7c0cc..9c0d169f6a 100644 --- a/seaweed-block/docs/releases/v1.1.2.md +++ b/seaweed-block/docs/releases/v1.1.2.md @@ -5,8 +5,21 @@ v1.1.2 is not yet released. ## Known issue: plain detach can abort during a periodic checkpoint - **Trigger:** a periodic checkpoint's already-issued HEAD update lands while `sw-block ops chunk detach --plain` is stopping background work. -- **Effect:** the detach aborts without publishing a sealed HEAD, and the volume keeps serving on the same holder. The CLI can report `outcome_unknown` (exit 3) instead of a definite abort. -- **What to do:** if the holder confirms `detach_aborted` and the volume is still serving on the same holder, retry the plain detach. Keep the operation id printed by the CLI when investigating an unknown outcome; `outcome_unknown` alone does not establish that the detach aborted. A definite retryable CLI answer for this case is planned for v1.1.3. +- **Effect:** a confirmed `detach_aborted` means no sealed HEAD was published and serving resumed on the same holder. The CLI can instead report `outcome_unknown` (exit 3); that answer alone proves neither an abort nor resumed guest I/O. If the holder's detach outcome is still unresolved, I/O stays stopped while it settles. +- **What to do:** confirm the original handle before treating this as a retryable abort. On the holder's host, query the same status address and volume used by the detach, with the id printed by the CLI: + + ```sh + STATUS_ADDR='' + VOLUME_ID='' + CUT_ID='' + curl --silent --show-error --max-time 5 --get \ + --data-urlencode "volumeID=$VOLUME_ID" \ + --data-urlencode "cutID=$CUT_ID" \ + --write-out '\nHTTP %{http_code}\n' \ + "http://$STATUS_ADDR/chunk/cut" + ``` + + HTTP 409 with `apiVersion: 1`, the same `cutID`, `code: "detach_aborted"` and `retryable: true` confirms this abort; retry the plain detach. This GET does not start another operation. Handles are transient: HTTP 404 `unknown_cut_id` (including after expiry or a holder restart), a failed query, or an unsettled answer does not confirm an abort. In that case keep guest I/O stopped, preserve the CLI output and holder logs, and [settle the unknown detach outcome](../volume-lifecycle.md#symptoms) before resuming I/O or moving the volume. A definite retryable CLI answer for this case is planned for v1.1.3. ## Known issue: blockmaster restart can stall on a busy filesystem