diff --git a/seaweed-block/core/storage/chunk_upgrade_wire.go b/seaweed-block/core/storage/chunk_upgrade_wire.go index 58baddb824..68ed024d06 100644 --- a/seaweed-block/core/storage/chunk_upgrade_wire.go +++ b/seaweed-block/core/storage/chunk_upgrade_wire.go @@ -26,10 +26,10 @@ import ( // Compared counts the chunks the pass found unknown and compared; Total is // the chunks it walks. It is carried across a stop by the pass's cursor. type UpgradePassStatus struct { - State string - Compared uint64 - Total uint64 - Outcome string `json:",omitempty"` + State string // none, seeded, running, done or failed; carried across a stop (read the status, never the pass's cursor file) + Compared uint64 // chunks the pass found unknown and compared, across stops + Total uint64 // chunks the pass walks + Outcome string `json:",omitempty"` // why a failed pass stopped; while the pass has not ended a cut, snapshot, backup or sealing detach is refused with code in_progress } // startUpgradePass decides the pass at attach and starts it when work diff --git a/seaweed-block/docs/status-schema.md b/seaweed-block/docs/status-schema.md index 61df3c3920..18553141f3 100644 --- a/seaweed-block/docs/status-schema.md +++ b/seaweed-block/docs/status-schema.md @@ -314,10 +314,11 @@ Durable store state of the served volume. Go type `volume.durableStatusBody`. | `Volumes[].Chunk.Stats.LastCutH` | uint64 | the LSN the last successful cut published | | `Volumes[].Chunk.Stats.LastCutNs` | int64 | when it completed (wall clock, Unix ns) | | `Volumes[].Chunk.Stats.CutSeq` | uint64 | successful cuts of this layer so far (in-process); the latest cut's identity | -| `Volumes[].Chunk.Stats.UpgradePass.State` | string | the upgrade compare pass after a v1.0 store's upgrade (v1.1 format): `none` (no pass needed), `seeded` (a clean-stop seed made every chunk known at the upgrade), `running`, `done`, or `failed`; carried across a stop by the pass's own cursor (read the status, never the cursor file) | +| `Volumes[].Chunk.Stats.UpgradePass` | object | the upgrade compare pass after a v1.0 store's upgrade (v1.1): none, seeded, running, done or failed | +| `Volumes[].Chunk.Stats.UpgradePass.State` | string | none, seeded, running, done or failed; carried across a stop (read the status, never the pass's cursor file) | | `Volumes[].Chunk.Stats.UpgradePass.Compared` | uint64 | chunks the pass found unknown and compared, across stops | | `Volumes[].Chunk.Stats.UpgradePass.Total` | uint64 | chunks the pass walks | -| `Volumes[].Chunk.Stats.UpgradePass.Outcome` | string | why a `failed` pass stopped; absent otherwise. While the pass has not ended, a cut, snapshot, backup or sealing detach is refused with code `in_progress` (retryable) | +| `Volumes[].Chunk.Stats.UpgradePass.Outcome` | string | why a failed pass stopped; while the pass has not ended a cut, snapshot, backup or sealing detach is refused with code in_progress (omitted when empty) | | `Volumes[].Chunk.Stats.BarrierOverBound` | uint64 | BarrierOverBound counts cuts whose barrier copied more than the bound after the staging rounds. | | `Volumes[].Chunk.Stats.AbsentChunks` | int | AbsentChunks is the number of HEAD-named chunks still absent with a block not local (what HydrateAll would still fetch); 0 = fully local. | | `Volumes[].Chunk.Stats.COWSpillCap` | int64 | COWSpillCap is the last cut's side-file cap in bytes, read once per cut; COWSpillCapReason is why it is 0, when the free space made it so: no_room_to_cut (half the free space is within the 1 GiB reserve) or free_space_unreadable (the free space could not be read). |