Commit Graph
4828 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 2ac97a00a5 storage, master: no pass on a fresh store; old heartbeats accepted (r2.881)
A v1.1 store with no unknown chunk and no rebuilt page starts no upgrade
compare pass and holds no cut, cursor or not: a fresh volume's chunks are
absent, so a new cluster's first snapshot runs at once (the process-level
procedures were refused in_progress). A heartbeat is accepted and its read
level recorded whatever it reads; an old binary is refused at the grant.
Test fakes that stand for v1.1 hosts in other packages report reads_level 1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 03:12:35 -08:00
pingqiuandClaude Opus 5.5 1618411850 master: awaiting_first_report is info, a spare host does not degrade the cluster
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 02:47:51 -08:00
pingqiuandClaude Opus 5.5 d5ab11512e master: the held-ask downgrade replaces v's own process
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 02:46:33 -08:00
pingqiuandClaude Opus 5.5 02ccbd700d master: bindings and admitted reservations count as existing state; the retry test starts its host
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 02:40:44 -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 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
Ping Qiu a290c1e023 Merge pull request #933 from seaweedfs/feat/v11-declare-format
storage: v1.1 declare-format: the format follows the assigned level, not a build tag
2026-12-02 01:34:06 -08:00
Ping Qiu 16bdd6bbd8 Merge branch 'main' into feat/v11-declare-format 2026-12-02 01:11:46 -08:00
Ping Qiu 7a6fe8cb9e Merge pull request #926 from seaweedfs/ci/failure-bundle-ae
ci: retain timed test events and whole-job load on failure
2026-12-02 01:05:13 -08:00
pingqiuandClaude Opus 5.5 7cb62f3b71 ci: the stderr fallback and a missing recorder have their own controls
The dead-recorder twins wrote a large stdout but one short stderr line,
so removing only the stderr fallback still passed. A fake Go that writes
10,000 stderr lines now runs with a recorder that dies after 100 bytes,
and with no recorder at all (no such interpreter); each keeps Go's own
exit 0 and 7, and dropping the stderr fallback turns the suite red.

The sampler stop test's wait for its stand-in is bounded (10 s) and
fails at once if the stand-in exits before it is ready.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 00:42:45 -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
Ping Qiu fd0555f353 Merge pull request #924 from seaweedfs/fix/nvme-command-retry-delay
feat: negotiate NVMe command retry delays for transient readiness
2026-12-02 00:29:24 -08:00
pingqiuandClaude Opus 5.5 9c536f5038 Merge main and fix/nvme-command-retry-delay
Conflict in docs/design/invariants.md: main added INV-FE-NVME-CANCEL-001
where this branch adds INV-NVME-RETRY-DELAY-001 and
INV-NVME-HOST-BEHAVIOR-001; all three rows kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 00:02:19 -08:00
Ping Qiu 062f94470d Merge pull request #932 from seaweedfs/fix/929-nvme-connection-cancel
Cancel NVMe provider readiness waits when the target closes
2026-12-01 23:53:45 -08:00
Ping Qiu 74067f1dc8 Merge pull request #925 from seaweedfs/fix/head-v1-stamp-once
layout: every version-1 HEAD write stamps unstamped snapshots
2026-12-01 23:53:39 -08:00
pingqiuandClaude Opus 5.5 69cd5c08bb ci: a dead recorder hands its stream to cat; a sampler that will not stop is recorded
If the Go event recorder itself dies or cannot start, the rest of its
stream (stdout, and the stderr side) now drains through cat, so go test
never writes into a closed pipe and its own exit status stays the answer.
Twins with a recorder that exits after 100 bytes and a large stream:
exit 0 stays 0, exit 7 stays 7.

Stopping the load sampler now waits on its pidfd (readable on exit) for
2 s; a sampler still alive leaves load.incomplete beside its rows and a
stderr note instead of returning as if it had flushed. The stop test
checks the process is gone (no file-stability guess) and a SIGTERM-
ignoring stand-in yields the note within 5 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 23:50:48 -08:00
pingqiuandClaude Opus 5.5 aebf1d42c7 storage: a v1.1 attach needs a remote that takes the HEAD format
SetHeadFormat reports whether the remote took the format; the provider's
wrapper answers false over a remote without it, so a v1.1 attach refuses
before anything local is written instead of upgrading behind a v1.0
writer. A provider test over the real layout store proves the assigned
level decides the stored HEAD bytes across a restart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 23:48:59 -08:00
pingqiuandClaude Opus 5.5 af7ee03fe4 Merge branch 'main' into ci/failure-bundle-ae
Conflict in the test workflow: main added the self-hosted runner NVMe
check after checkout; this branch adds the load-evidence start and its
self-test there. Both kept, the NVMe check first so a misplaced runner
stops before anything else runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 23:40:50 -08:00
pingqiuandClaude Opus 5.5 2184f8049b Merge branch 'main' into fix/nvme-command-retry-delay
Conflict in core/frontend/nvme/session.go: main added the rate-limited
write-failure log before the completion status; this branch computes the
status through the session (negotiated retry delay). Both kept: the log,
then s.completionStatus(res).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 23:39:55 -08:00
pingqiuandClaude Opus 5.5 efc5180595 docs: the attach level's home in the format-level row
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 23:33:24 -08:00
pingqiuandClaude Opus 5.5 4c0e826f7d durable: keep the attach level next to the attach
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 23:32:54 -08:00
Ping Qiu fa16e037d9 Merge branch 'main' into fix/head-v1-stamp-once 2026-12-01 23:32:53 -08:00
Ping Qiu 4831af27ce Merge branch 'main' into fix/929-nvme-connection-cancel 2026-12-01 23:32:37 -08:00
Ping Qiu 3cbb7cf2eb Merge pull request #911 from seaweedfs/feat/b1-candidate-bitmap
storage: a cut's guest pause does O(1) work; candidates by change
2026-12-01 23:32:33 -08:00
pingqiuandClaude Opus 5.5 4184e30af4 storage, layout: the attach level comes from the assignment; one HEAD write guard
The host keeps the format level of every assignment no older than the
newest, the frontend projection carries it, and the provider attaches the
chunk layer at it (absent = 0). At level 0 the attach reads HEAD first: a
version-1 HEAD runs v1.1 (reported behind), a v1.1 store under a
version-0 HEAD is refused, anything else stays v1.0. A v1.1 attach over a
remote without the HEAD format is refused. The layout's one HEAD write
path refuses a write that raises HEAD from version 0 to version 1 below
format level 1, whichever writer tries; writers supply their level in
their context. The running format is in the chunk stats.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 23:32:23 -08:00
Ping Qiu 22783f605d Merge pull request #909 from seaweedfs/test/noflush-passive-progress
durable: test, the no-flush passive wait follows the flusher's cycle
2026-12-01 23:26:41 -08:00
Ping Qiu 1b59e1a371 Merge pull request #934 from seaweedfs/ci/require-nvme
ci: stop a self-hosted job whose work or temp dir is not on NVMe
2026-12-01 23:14:31 -08:00
Ping Qiu e06bc933f6 Merge branch 'main' into fix/head-v1-stamp-once 2026-12-01 23:14:17 -08:00
Ping Qiu 0cf187152d Merge branch 'main' into feat/b1-candidate-bitmap 2026-12-01 23:11:54 -08:00
Ping Qiu 34a3dc6af9 Merge pull request #931 from seaweedfs/fix/record-commit-needs-hash
storage: the record's Commit needs a hash it holds (v1.0 landed chunk)
2026-12-01 23:11:36 -08:00
Ping Qiu 5b720464a8 Merge pull request #914 from seaweedfs/fix/nvme-busy-write-diagnostics
Log retryable NVMe write failure causes with a target rate limit
2026-12-01 23:11:30 -08:00
Ping Qiu 45926a51f5 Merge branch 'main' into fix/929-nvme-connection-cancel 2026-12-01 23:09:22 -08:00
Ping Qiu 31e23aba4b Merge branch 'main' into test/noflush-passive-progress 2026-12-01 22:56:37 -08:00
pingqiuandClaude Opus 5.5 a2419b2cec ci: judge tmpfs by filesystem type; an lsblk error voids its output
A tmpfs mounted under another source name (shm, a custom label) was
refused because the check compared the source name. And an lsblk that
printed an NVMe disk and then failed was accepted, since its status was
discarded. The check now reads the filesystem type from df and treats any
lsblk failure as "not a block device". Two stub cases pin both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 22:53:34 -08:00
Ping Qiu 8ee5abbe53 Merge branch 'main' into fix/head-v1-stamp-once 2026-12-01 22:52:19 -08:00
Ping Qiu 5085b13695 Merge branch 'main' into fix/record-commit-needs-hash 2026-12-01 22:51:17 -08:00
Ping Qiu 512c0e1db6 Merge branch 'main' into fix/nvme-busy-write-diagnostics 2026-12-01 22:51:13 -08:00
pingqiuandClaude Opus 5.5 4ec8ec06e6 ci: stop a self-hosted job whose work or temp dir is not on NVMe
One runner box kept its runners' work, temp and Go cache directories on
its SATA system disk (the default install puts _work under the runner
directory in /home). Under the process-level tests' fsync load that disk
saturated and jobs timed out, which read as test failures.

The first step of the test and known-bugs jobs on a self-hosted runner now
checks that every disk behind the workspace, RUNNER_TEMP, TMPDIR and GOCACHE
is NVMe (tmpfs accepted) and fails naming the runner and the directory
otherwise. GitHub-hosted runners skip the step. The script's test stubs df
and lsblk: NVMe, tmpfs, a not-yet-created dir pass; SATA, an array with a
SATA member and a network share fail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 22:45:32 -08:00
pingqiu c284f788a3 test: witness provider cancellation before target close returns 2026-12-01 22:35:07 -08:00
pingqiu d5da9b1dd1 Merge remote-tracking branch 'origin/main' into feat/v11-declare-format 2026-12-01 22:29:28 -08:00
Ping Qiu 7f8367c495 Merge pull request #913 from seaweedfs/feat/format-gate-master
master: cluster format level (FORMAT-GATE): finalize-format, level-0 v1.0 semantics, retire-host
2026-12-01 22:28:14 -08:00
pingqiuandClaude Opus 5.5 9a4078e17a storage: the v1.1 format follows the assigned level, not a build tag
A chunk layer decides its format once at attach from its config's
FormatLevel and the store's marker: level 1 upgrades a v1.0 store; level
0 keeps it on v1.0; a store already on v1.1 at level 0 is served over a
version-1 HEAD (reported as format_level_behind_volume) and refused over
a version-0 HEAD (format_level_behind_store). The layout remote's HEAD
format follows its layer (SetHeadFormatV11) and reports the version it
read (HeadV11). Every production attach is level 0 until the assignment
carries the master's level, so a release build keeps writing v1.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 22:27:16 -08:00
Ping Qiu 2f602b6a11 Merge pull request #930 from seaweedfs/test/f1-port-retry
test: F1's holder ports are drawn below the ephemeral range, and a start that lost its port is retried once (#927)
2026-12-01 22:17:18 -08:00
pingqiu 5b92cde89e ci: run tests at ready 2026-12-01 22:16:39 -08:00
pingqiu 64b36ffa50 fix(nvme): cancel connection readiness waits when target closes 2026-12-01 22:13:03 -08:00
pingqiuandClaude Opus 5.5 2d2327e8e8 durable: test, every store read on the busy path is bounded
The no-flush busy path observes the store only through a bounded
snapshot: the checkpoint at the busy write, the target, the retry log
and the timeout diagnostic, which reports the last observation (or
"unavailable") instead of a fresh read. The busy-path check is a
function the burst test calls, so a control drives it with the store
lock held across the deadline at each observation, and released early.
The wait's control gains an early-release case that must return the
advanced checkpoint, a lower bound for the held case, and joins every
fake read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 22:05:37 -08:00
Ping Qiu 40d6cb45e5 Merge pull request #928 from seaweedfs/ci/c3-nongating
ci: run C3 non-gating on shared runners until #905 is fixed
2026-12-01 22:04:31 -08:00