Commit Graph
1629 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 eec017474f Fence slices bypass the page cache and are durable before they count
Each 1 MiB fence slice writes its aligned bytes O_DIRECT (Linux, where
the filesystem allows it) and is fdatasynced before it counts as
recovery progress, so a fence on a shared, capped disk no longer waits
behind other writers' page writeback.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 09:31:47 -08:00
Ping Qiu df6ba7f031 Merge pull request #955 from seaweedfs/feat/v8-delete-consumer
Resume persisted snapshot delete intents through holder maintenance
2026-12-02 08:35:34 -08:00
pingqiu 3cf172045a Mark reachable intent consumption and list retirement in the ledger 2026-12-02 07:14:58 -08:00
pingqiu 4488a94dd5 test: pin WAL hold silence and reservation continuity 2026-12-02 07:07:34 -08:00
pingqiu bd81736768 Scope the snapshot-delete consumer split and its resweep contract 2026-12-02 07:06:51 -08:00
pingqiu 7fd40ec621 Bound intent decoding by the fixed candidate shard 2026-12-02 07:04:41 -08:00
pingqiu def2a78fac Resume persisted delete intents through holder maintenance 2026-12-02 07:04:09 -08:00
pingqiu 7b8aeafbd1 Return typed backpressure for the pending reclamation slot 2026-12-02 07:03:41 -08:00
pingqiu eaf456d5e0 feat(chunkstore): resume delete intents and retire abandoned list pages 2026-12-02 07:03:41 -08:00
pingqiu ede1e4d3b0 perf: reserve uncontended WAL appends without a queue ticket 2026-12-02 06:34:21 -08:00
pingqiu ea15eb8f37 test: pin WAL hold timing and reordered append controls 2026-12-02 06:21:20 -08:00
pingqiu c88b152f98 Merge remote-tracking branch 'origin/main' into feature/905-wal-pressure-hold 2026-12-02 06:14:41 -08:00
pingqiu 7f1468973d docs: preserve UTF-8 in transport contract edits 2026-12-02 06:12:42 -08:00
pingqiu f43a47105a fix: keep device write budget out of FUA sync 2026-12-02 06:11:47 -08:00
Ping Qiu 70e99438e9 Merge pull request #950 from seaweedfs/feat/v8-producer-reserved
Reserve bounded producer list cursors in HEAD version 1
2026-12-02 06:03:41 -08:00
pingqiu 18ffa85a40 Regenerate status schema for the pending-work skip reason 2026-12-02 05:40:59 -08:00
Ping Qiu b6ccca62f9 Merge pull request #942 from seaweedfs/feat/master-format-level-read
master: read-only format level, a new cluster starts at level 1
2026-12-02 05:24:46 -08:00
pingqiu 9a4fc847a6 Report newer pending work when list retirement is skipped 2026-12-02 05:20:35 -08:00
pingqiu 7bd43c8604 fix: retain command arrival priority between WAL batches 2026-12-02 05:17:35 -08:00
pingqiu 4c90321088 Reserve bounded producer list cursors in the v1.1 HEAD format 2026-12-02 05:06:28 -08:00
pingqiu 22e75f5bfa fix: scope FIFO admission to store appends 2026-12-02 05:06:15 -08:00
pingqiuandClaude Opus 5.5 ee55f6b1a8 storage: a new store's own recovery reports its fence through the create options
createWALStoreV3Configured recovered the new store with a background
context, so the fence of that recovery reported no progress although the
provider passes RecoveryProgress on create; on a slow disk the startup
window could end inside it. It now recovers with the options' observer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 04:54:59 -08:00
pingqiu 5365a2d106 fix: keep final-error device writes outside retryable WAL holds 2026-12-02 04:52:08 -08:00
pingqiuandClaude Opus 5.5 70f477b34a Merge main (#939) into the format-level read
Keeps both sides: #939's finalize-format exit codes and JSON answer
beside the format-level read in sw-block cluster_format.go, and #939's
typed move refusal (text plus reason) with the move target refused only
on a known-old report (placementTooOld), whose reason is binary_too_old.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 04:40:04 -08:00
Ping Qiu f0050b0465 Merge pull request #939 from seaweedfs/feat/finalize-format-typed
sw-block: finalize-format and a refused move answer with typed fields
2026-12-02 04:36:44 -08:00
Ping Qiu f54fc487d0 Merge pull request #943 from seaweedfs/fix/b1-candidate-followups
storage: a clean-fill touch request cannot hide from a cut
2026-12-02 04:20:31 -08:00
pingqiu e50c61c4c6 docs: cover the atomic WAL hold status route in the schema 2026-12-02 04:12:10 -08:00
pingqiu 9b1314805c fix: hold WAL writes through reclaim progress with command FIFO 2026-12-02 04:12:10 -08:00
pingqiu ebc0f5d3cd fix: retain FIFO WAL admission tickets through append 2026-12-02 04:12:10 -08:00
pingqiu 56289b4fdb feat: distinguish final-error device WAL hold windows 2026-12-02 04:12:10 -08:00
pingqiu 84111fd66f feat: validate declared host timeout against WAL hold cap 2026-12-02 04:12:10 -08:00
pingqiuandClaude Opus 5.5 6abb5dd7b5 master, storage: a store created at level 1 is born v1.1; grant an ownerless line on its observed server
A store created at format level 1 writes its upgrade-pass record as
done at creation, so it never runs the compare pass, also when it
restarts before its first cut. A publication whose line has no recorded
owner is judged on the server whose live observation reports the ask's
slot at its endpoints, not on an empty server id. The format-eligibility
invariant row names the heartbeat-recording test and states the
placement/grant split; the RDMA failover test's hosts report their
reads level before any grant.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 04:03:58 -08:00
pingqiuandClaude Opus 5.5 feb70ac198 storage: an aborted cut reissues the touch request (red); the row in the approved wording
A cut that took a recovery's clean-fill request and aborts (its copy
window cannot install) reissues the request under a fresh generation:
a new red checks the next cut still covers the fills. The ordering row
takes the approved wording: a reader clears by a CAS on its own
generation, a barrier takes the request before the set, and an aborted
cut reissues it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 03:57:43 -08:00
Ping Qiu dfc25c9c72 Merge branch 'main' into fix/b1-candidate-followups 2026-12-02 03:47:11 -08:00
pingqiuandClaude Opus 5.5 49ca6baf55 durable: the authority pause follows every transition, not only the first grant
A grant whose attach failed and whose authority was then lost returned to
the wait without a new pause, so the master's resumed wait could read as a
stall. The pause now starts whenever authority is missing and ends at each
grant, before the local attach.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 03:30:23 -08:00
pingqiuandClaude Opus 5.5 cb542b3c21 host, durable: the authority pause ends at the grant and latches silence before it
Review fixes. The provider ends the stall window's pause when authority is
granted, before the local attach, so a stuck attach is a stall again; the
first authority wait latches silence that already filled the window, so the
pause cannot hide it and its end cannot erase it. The held-sync and
held-attach tests release their holds before Close on every exit, and the
real prezero gets a sync seam with an order and a failed-sync control.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 03:05:09 -08:00
pingqiuandClaude Opus 5.5 d1247a7eef docs: the touch-request ordering row in the model's wording
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 02:47:25 -08:00
pingqiuandClaude Opus 5.5 c7f7f016e9 master: the grant reads the holder process's own report
The publication boundary checks the (server, volume) entry of the
process that will serve the volume, never the server's lowest level
over its other processes: a sibling's report says nothing about this
process's binary.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 02:35:28 -08:00
pingqiuandClaude Opus 5.5 744d238163 master: the format gate at the grant, not the placement (r2.875)
Placement (create, move, restore target, a failover candidate) refuses
only a host known to read a lower level, typed BINARY_TOO_OLD: with one
process per volume and create-then-start a placement target cannot have
reported yet. The grant (an authority line published to its holder)
needs the holder's own report at the cluster level; no report, no grant.
awaiting_first_report stays only as a status state; its refusal reason
is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 02:27:24 -08:00
pingqiuandClaude Opus 5.5 6bf0445fcd host: recovery_stalled counts every synced startup slice and pauses for the master's authority wait
The startup inactivity window renewed only on replay, scan, map and attach
work. A new store's prezero and the WAL fence wrote and synced whole
regions with no report, so on a slow disk the window could end inside one
silent step; and the chunk layer's wait for master authority, a wait the
master bounds, ran out the same window.

- storage: phases RecoveryCreate and RecoveryFence; syncedSlices runs a
  sized step 4 MiB at a time and reports a slice only after its sync;
  prezeroNewStore uses it, and recovery reports the fence's synced bytes.
- durable: create passes RecoveryProgress; AuthorityWait tells the host
  when the authority wait starts and ends; Chunk.AuthorityGap names the
  projection fields that withhold authority.
- host: recovery_timeout becomes recovery_stalled; waits are counted, the
  window pauses while any runs and restarts when the last ends, a stall
  latched before stays latched; /status RecoveryWait=awaiting_authority.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 02:23:33 -08:00
pingqiuandClaude Opus 5.5 912fdea4ea storage: a clean-fill touch request cannot hide from a cut
A recovery asks the next touched-set user to touch every clean fill. A
reader cleared that request before its touches reached the set, so a
cut in between saw neither and judged without the fills. The request is
now a generation: a reader clears it (compare-and-swap) only after its
touches are in the set, and the barrier takes the request before the
set, so a cut sees the request or the touches. A reader's listing of the
touched set copies the non-empty words under the set's lock and lists
their chunks after releasing it, so a barrier's take waits only for the
copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 02:20:34 -08:00
pingqiuandClaude Opus 5.5 8393c98931 master: first reports before placement in two fixtures; viewer and fsync controls
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 02:19:34 -08:00
pingqiuandClaude Opus 5.5 c182734c0c master: a new cluster only when every master store is empty
The lifecycle stores (volumes, nodes, placements, deletions) open before
the format decision and count: an empty authority store over an existing
inventory is not a new cluster and starts at level 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 02:14:56 -08:00
pingqiuandClaude Opus 5.5 36d797cf01 master: read-only format level, a new cluster starts at level 1
LifecycleService.FormatLevel answers the cluster's format level (a
viewer's read; sw-block cluster format-level). A master that finds no
prior authority state writes the level-1 envelope before it serves;
existing state keeps its level, so only a cluster holding v1.0 data
needs the finalize. Above level 0 a node that has not reported its read
level is refused new work typed and retryable (AWAITING_FIRST_REPORT),
and the cluster status shows it awaiting report. The master tests' fake
hosts report reads_level 1 as a v1.1 host does; the FormatGate upgrade
tests start from a store in v1.0.x's form.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 02:07:57 -08:00
pingqiu 28125bf8dc Merge remote-tracking branch 'origin/main' into fix/flusher-bounded-cycles
# Conflicts:
#	docs/releases/v1.1.md
2026-12-02 01:57:45 -08:00
pingqiuandClaude Opus 5.5 e9c7a5c4da sw-block: finalize-format and a refused move answer with typed fields
A script must not parse message text. finalize-format now exits 0 for
finalized or already finalized, 2 for a refusal, 75 when the master cannot
be reached, and 1 for any other failure (a failed write of the format
record included); --json prints result, reason, hosts, format_level and
message for every outcome. The master's refusal carries each refused host
in its ErrorInfo metadata, and a failed attestation write is Internal, not
Unavailable.

A move onto a host whose binary reported a read level below the cluster's
carries the typed reason BINARY_TOO_OLD; ops workspace move and force-move
show it in --json.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 01:22:52 -08:00
pingqiuandClaude Opus 5.5 d5c2fbdeae docs: regenerate the status schema for the checkpoint step fields
The status schema's generated block takes its descriptions from the
fields' comments: the checkpoint step fields now carry them, and the
block is regenerated (STATUS_SCHEMA_UPDATE=1) instead of hand-edited.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 01:13:24 -08:00
Ping Qiu 16bdd6bbd8 Merge branch 'main' into feat/v11-declare-format 2026-12-02 01:11:46 -08:00
pingqiuandClaude Opus 5.5 e709950124 storage: the recovery fence zero-fills in 4 MiB slices
The fence stays a zero fill (a punched WAL would make the next lap's
appends allocating writes, each fsync committing metadata); the hole
punch is removed. The fill now runs in 4 MiB slices, each written,
fsynced, and only then counted (FenceZeroed) and reported to
fenceSliceHook, the per-slice recovery-progress hook: a recovery over a
slow disk shows progress every slice and the journal never takes the
whole WAL as one burst. The repeat skip stays: a new volume's second
recovery does not fill again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 00:57:37 -08:00
pingqiuandClaude Opus 5.5 1e40d947da Merge main into the declare-format branch: the HEAD guard with the stamp
runTransition now runs the format level guard first (it refuses only a
raise of HEAD from version 0 to 1 below level 1; stamping never changes
the version, so a refused write is never stamped), then the write-time
snapshot stamp, then the write check. The stamp tests run a v1.1
holder's cut at level 1; the v1.0 landing control pins v1.0 whatever the
package mode. Both invariant rows are kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 00:34:27 -08:00