diff --git a/seaweed-block/cmd/blockvolume/process_exit.go b/seaweed-block/cmd/blockvolume/process_exit.go index 3e81e14fe5..d3e98449f8 100644 --- a/seaweed-block/cmd/blockvolume/process_exit.go +++ b/seaweed-block/cmd/blockvolume/process_exit.go @@ -249,9 +249,11 @@ func chooseChunkStartupExit(e *processExit, f flags, h *volume.Host, p chunkStar // INV-WS-STARTUP-RETRY-001: one exit decision consumes both proof // sources; the provider rechecks the claim generation below. out := workspaceRetryOutcome("assignment_timeout", h, p.ChunkStartupSuperseded(f.volumeID, gen)) - if out.code == exitWorkspaceRetry && h != nil { + if h != nil { // A typed MOVED or DELETED renewal refusal is permanent: 78 at once, - // never a restart loop to the unit's start limit. + // never a restart loop to the unit's start limit. It is the reason + // that ended the wait, so it names the exit even when a newer + // foreign line was also observed (superseded). if _, final := h.MasterWaitState(); final != "" { out = workspaceExit{code: exitWorkspaceSuperseded, reason: final} } diff --git a/seaweed-block/docs/status-schema.md b/seaweed-block/docs/status-schema.md index 8e38ecfade..52aaa7e569 100644 --- a/seaweed-block/docs/status-schema.md +++ b/seaweed-block/docs/status-schema.md @@ -37,6 +37,10 @@ The volume's authority and health projection. Go type `volume.StatusProjection`. | `CatchUp.ElapsedMs` | int64 | ElapsedMs is the time since this replica was admitted as a supporting replica at its current epoch. | | `CatchUp.LagLSN` | uint64 | LagLSN is the engine's H-R (primary head minus this replica's durable frontier) as last observed; 0 when unknown or caught up. | | `Warnings[]` | string | Warnings include routing disagreements and typed recovery warnings (e.g. wal_hole_suspected, issue #51). Visible, not an alert: they do not change Healthy or the frontend's readiness. (omitted when empty) | +| `MasterWait` | object | MasterWait is why a workspace primary holds no granted lease, present only while NotReadyReason is lease_not_held: Reason (unreachable, credentials, barrier, no_assignment, refused, moved, deleted), since when, and the wait's bound or the master's barrier time (UntilMs, absent while there is no bound). (omitted when empty) | +| `MasterWait.Reason` | string | — | +| `MasterWait.SinceMs` | int64 | — | +| `MasterWait.UntilMs` | int64 | — (omitted when empty) | ### `GET /status/peers`