mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 10:37:23 +01:00
docs: regenerate the status schema for Stats.UpgradePass
The status schema's generated block comes from the code: the hand-written rows are replaced by the generated ones, with the field comments on UpgradePassStatus. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3ea35a5d5d
commit
e73f30530e
2 files changed
+7
-6
No files matched your search
@@ -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
|
||||
|
||||
@@ -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). |
|
||||
|
||||
Reference in new issue
Block a user