mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
fix: a typed moved/deleted refusal names the exit; status schema doc
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
887564ee84
commit
be75beed90
2 files changed
+8
-2
No files matched your search
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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`
|
||||
|
||||
|
||||
Reference in new issue
Block a user