docs(block): clarify plain detach outcome recovery

This commit is contained in:
pingqiu committed 2026-12-05 17:52:40 -08:00
1 parent 43d135d335
commit 455139a7f0
2 files changed
+30 -4

No files matched your search

+15 -2
View File
@@ -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='<holder-status-host:port>'
VOLUME_ID='<volume-id>'
CUT_ID='<id printed by the detach CLI>'
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
+15 -2
View File
@@ -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='<holder-status-host:port>'
VOLUME_ID='<volume-id>'
CUT_ID='<id printed by the detach CLI>'
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