Commit Graph
23 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 ab747bfa47 change: cut over to the content-named store and delete the legacy store
The runtime stores each volume in one content-named layout on the filer:
immutable chunks, segments and roots are ordinary filer files, and one
HEAD entry per volume carries every conditional commit. A holder claims
HEAD under its granted epoch and claim id, cuts in its own session,
commits by HEAD generation and position, and is fenced when its identity
moves. Catalog, restore, snapshot, retention, cleaning, verify and volume
delete run through the layout kernel; the master mints the layout
identity, reads HEAD proofs and holds the delete reservation and lease
barrier. The legacy store, its intents and its compatibility paths are
removed; existing stores are recreated, not converted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 14:59:23 -08:00
pingqiuandClaude Opus 5.5 121a4ec5ed master, volume, replication: a promotion survivor is the store its primary attested
The primary attests, in its heartbeat, the store id (superblock UUID) of
each replica counted toward its write ACKs. A probe round answer carries
the replica's store id; a candidate is ready only when that id is the one
its primary attested (a replaced or never-attested store is not a
survivor). The promotion line carries the probed store id, and the target
refuses a promotion whose store id is missing or is not its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 03:23:18 -08:00
pingqiu bfeab6ca94 fix: terminate a restarted moved source with typed MOVED and exit 78 2026-11-24 19:35:30 -08:00
pingqiuandClaude Opus 5.5 2a80101273 fix: one owner for the startup bound; a failing granted attach is bounded
The host owns the startup wait's one bound: it keeps the wait's start and
opens the window at the first reply at or after it; the run of replies
(and the window) ends on a transport, credentials or identity refusal;
/status shows the same bound. The provider asks the host for the bound
given its own start, and checks it on the attach retry path too: a
granted attach that keeps failing no longer holds the lease for ever
without serving. An identity refusal ends on an accepted identity-checked
call (the run of replies restarts there) or after 30 s of replies with no
new identity refusal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 00:52:11 -08:00
pingqiu 61c30f5e73 Merge remote-tracking branch 'origin/main' into fix/master-wait
# Conflicts:
#	docs/design/invariants.md
2026-11-23 22:45:22 -08:00
pingqiuandClaude Opus 5.5 be75beed90 fix: a typed moved/deleted refusal names the exit; status schema doc
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 22:27:32 -08:00
pingqiuandClaude Opus 5.5 2d65269fce fix: report how many chunks a fresh attach certified known-zero
ApplyFreshKnownZero now records the count in Stats.KnownZeroChunks and
logs it; when some sampled chunks stay unknown (a failed map publication
or a raced write) the log says the first cut will scan them, so a lab
run that sees a full first scan has the reason in the status and log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 21:59:08 -08:00
pingqiuandClaude Opus 5.5 6d00eb63b4 fix: a cut's payload time counts staging; the layer counts staged chunks
A cut's PayloadNs now counts its staging rounds even when they uploaded
nothing (every staged chunk was zero), so a first cut that spent its time
reading and hashing shows it. The layer status gains StagedChunks: the
chunks staged by every cut attempt, failed ones included, so a cut retried
after its deadline shows the progress its earlier attempts made.
DirtyChunks is documented as the next cut's candidates, not its progress.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 18:08:11 -08:00
pingqiuandClaude Opus 5.5 1b675b39d0 blockvolume: lease_not_held reason and a one-time grant log for a workspace primary
A workspace primary whose lease guard is missing or holds no granted lease
now reports NotReadyReason=lease_not_held first (the guard decides, through
the new WorkspaceLeaseGuard.Held, the lease term permits already used). The
guard logs its first grant once, as "re-granted after N refused renewal(s)"
when renewals were refused first (a restart before the forced-move barrier),
with the request-start time in unix_ms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:14:02 -08:00
pingqiuandClaude Opus 5.5 34675c0930 blockvolume: no frontend listens and status is not primary-ready until the backend admits I/O
A restarted old holder (G-O2 r8) started its NVMe target unconditionally
at startup and reported FrontendPrimaryReady=true from the authority view
alone, before and after its chunk-layer claim was refused ("fenced, not
serving"). The admit gate refused every command with Namespace Not Ready,
but that status is retried on the same path and then fails to the guest,
and the path advertised ANA optimized, so a listening, ready-looking but
fenced target is not safe.

- status: FrontendPrimaryReady is false while the volume's local durable
  backend admits no I/O (attach pending, fenced, detached), with the
  backend's evidence in the new NotReadyReason; Healthy stays the authority
  view.
- blockvolume: the iSCSI, NVMe and ublk targets start only once the backend
  first admits I/O (awaitBackendAdmitsIO, 10 ms); signals and the workspace
  lease guard now start before that wait, and a stop requested during it
  skips the frontends and goes straight to shutdown.

INV-FE-PRIMARY-READY-OPERATIONAL-001 (304 rows, 218 ACTIVE); M1 Recovering
-> Serving names the guard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:14:02 -08:00
pingqiu c4720afa3a docs(status): regenerate warning schema for routing diagnostics 2026-11-22 04:43:09 -08:00
pingqiuandClaude Opus 5.5 5991507beb docs: status schema lists Chunk.CutSchedule
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 18:12:31 -08:00
pingqiu 860ea15ac3 Merge remote-tracking branch 'origin/main' into feat/scheduled-snapshots
# Conflicts:
#	core/host/volume/chunk_control.go
2026-11-21 08:30:09 -08:00
pingqiuandClaude Opus 5.5 5e4f2f3d45 storage, durable: cuts are ordered by an in-process CutSeq, never by wall stamps; the periodic decision skips once CutSeq moved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 07:12:20 -08:00
pingqiuandClaude Opus 5.5 dad0b347d3 storage: one free-space read per cut for staging and the window; a zero cap shows its cause (no_room_to_cut, free_space_unreadable) in stats and abort counts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 05:30:15 -08:00
pingqiuandClaude Opus 5.5 ab3610608c blockvolume: scheduled snapshots (daily:7 by default), one COW cut each at a per-volume offset
A per-volume worker takes a named snapshot of class scheduled once per
period, through the same seal path as an explicit snapshot (resolve the
request, one urgent cut, record that cut's HEAD). A restoring volume
(chunks its HEAD names still absent) is skipped and counted; a failure
keeps the control endpoint's code and is retried with a backoff doubling
from 1m to 1h; status carries the schedule state and snapshot_overdue.
Retention keeps the newest N scheduled snapshots (N from the newest one's
swb.schedule.keep label) separately from other snapshots.
--chunk-snapshot-schedule=daily:N|weekly:N|off, default daily:7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 05:08:31 -08:00
pingqiuandClaude Opus 5.5 2629004167 train 8: regenerate the status schema page after #338's comment change
docs/status-schema.md is generated from the Go field comments (#341);
#338 rewrote the StageRounds comment group, so the composed train needs
the page regenerated (STATUS_SCHEMA_UPDATE=1). Docs only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 04:06:11 -08:00
pingqiuandClaude Opus 5.5 746a50e44b status schema: storage and latency field comments; every status field documented
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:37:07 -08:00
pingqiuandClaude Opus 5.5 23c23b72aa status schema: durable volume, chunk and write profile field comments
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:35:28 -08:00
pingqiuandClaude Opus 5.5 671a5eebc8 status schema: NVMe/TCP and ublk counter comments
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:25:55 -08:00
pingqiuandClaude Opus 5.5 6fe5a9b17d status schema: replication peer, engine projection and chunk usage field comments
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:25:11 -08:00
pingqiuandClaude Opus 5.5 c669f13950 status schema: host and frontend status field comments
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:24:27 -08:00
pingqiu 8fb359c7a3 WIP status schema (O-OPS-2) 2026-11-20 23:21:08 -08:00