Commit Graph
3972 Commits
Author SHA1 Message Date
pingqiu acfafb4aca retry automatic cuts while staging makes progress 2026-11-28 18:26:20 -08:00
pingqiu 0aeed517fd test immediate retry after cut staging progress 2026-11-28 18:26:20 -08:00
Ping Qiu db136ca5e9 Merge pull request #715 from seaweedfs/fix/cluster-status-revision
fix: expose build revisions for cluster diagnostics
2026-11-28 18:20:58 -08:00
Ping Qiu e42aadf793 Merge pull request #697 from seaweedfs/fix/c1-commit-check-outside-head-window
fix: check a commit's objects with the cut's budget, before the HEAD update
2026-11-28 18:05:27 -08:00
Ping Qiu 298b79d7a1 Merge pull request #684 from seaweedfs/fix/blob-http-conn-reuse
fix(chunkstore): the needle client reuses its connections
2026-11-28 17:41:43 -08:00
Ping Qiu a97259315d Merge pull request #722 from seaweedfs/test/golden-v100-master-stores
test: v1.0.1 reads the v1.0.0 files of the master's stores (golden guard)
2026-11-28 16:24:44 -08:00
Ping Qiu c3c070bab4 Merge pull request #719 from seaweedfs/test/golden-v100-encodings
test: v1.0.1 keeps the v1.0.0 on-disk encodings (golden guard)
2026-11-28 16:23:44 -08:00
pingqiu 31e92dc4a9 docs: regenerate status version row from its code comment 2026-11-28 16:17:25 -08:00
pingqiu f02e4a0bfa include source modification in diagnostic revisions 2026-11-28 16:17:05 -08:00
pingqiu f91247f4cb expose comparable build revisions in diagnostic status 2026-11-28 16:17:05 -08:00
pingqiuandClaude Opus 5.5 ff42e54ff0 fix(chunkstore): drain a non-200 fetch, close the owned pool, and test forced overlap
Review follow-up. A fetch answered with anything but 200 (a 404 is
ordinary while a restore target hydrates) drains its body like a delete,
so its connection is reused. Close also closes the blob client's idle
connections, now that the client owns its transport. The idle pool size
is stated as a retention budget, not a limit on requests in flight.

Tests: 404 fetches reuse one connection; Close releases the idle
connection while the server stays up; the upload test forces waves of
eight overlapping requests and carries a default-pool control.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 15:35:32 -08:00
pingqiuandClaude Opus 5.5 a9a24880e7 test: census package-level ObjectsChecked writes; separate root and segment checks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 15:26:22 -08:00
pingqiuandClaude Opus 5.5 263a1ffa9b test: syntax-aware ObjectsChecked census; session, snapshot and retry guards
The writer census parses every production file and attributes each write
of ObjectsChecked to its receiver and method (only CASHead), with controls
for another method, a keyed literal and a multiple assignment. New
guards: a check passed in one session is not reused after an abort and a
new session at the same root; CommitPendingSnapshot looks up the root and
segments; the metadata-conflict retry looks up again without a passed
check and may reuse a passed check of the same pair.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 15:26:22 -08:00
pingqiuandClaude Opus 5.5 3051e8f42c fix: forward the commit check through the provider's wrapped remote
blockvolume's chunk layer holds the LayoutRemote inside closeBoundRemote
and layoutBoundRemote, so its assertion for the commit check failed and
the lookups stayed inside the 2 s HEAD update. closeBoundRemote now
forwards CheckCommit with the same binding as CASHead; a remote without it
passes, and its CAS checks inside. Tests go through the provider's attach,
check every optional interface the chunk layer asserts against the
wrapped remote, and cover a pre-check that finds a chunk missing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 15:26:22 -08:00
pingqiuandClaude Opus 5.5 c9f4ad4bf5 fix: check a commit's objects with the cut's budget, before the HEAD update
The commit's object check (every new chunk, segment and root written by
the session, unmarked) ran inside the one HEAD update, which the chunk
layer bounds at 2 s; the work grows with the changed chunks, so it capped
the volume size. The chunk layer now asks the remote to run that check
with the cut's context, just before the CAS; the CAS then skips the
lookups only for exactly the session and root that passed. Any other CAS
(another root, another session, the snapshot commit) runs them inside as
before. The session stays open between the two, so no cleaning can begin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 15:26:20 -08:00
Ping Qiu 0d6cfdf8c2 Merge pull request #729 from seaweedfs/fix/fencing-survivor-rejoin
test: retain production freshness through fencing-heal rejoin
2026-11-28 15:25:58 -08:00
Ping Qiu b31d7c05d3 Merge pull request #704 from seaweedfs/fix/cut-compare-marks
fix(storage): a failed cut's equal compares stay; pace only sent bytes
2026-11-28 15:22:06 -08:00
Ping Qiu 5ac89256ea Merge pull request #712 from seaweedfs/fix/peer-session-queue-order
fix, replication: give the peer queue ownership of session exchanges
2026-11-28 15:16:37 -08:00
Ping Qiu fe467842aa Merge pull request #699 from seaweedfs/feat/cli-chunk-request-loop
sw-block: snapshot, cut and detach repeat 5-minute requests up to --timeout (v1.0.1)
2026-11-28 15:14:54 -08:00
Ping Qiu d65239738b Merge pull request #725 from seaweedfs/docs/readme-direction
docs(readme): direction: what works today, what v1.0.1 adds, what comes after
2026-11-28 15:10:07 -08:00
Ping Qiu 61f1eee24e Merge pull request #724 from seaweedfs/feat/sw-block-mini
feat(sw-block): mini starts the single-host setup in one command
2026-11-28 15:05:26 -08:00
Ping Qiu 53f84a527c Merge pull request #723 from seaweedfs/fix/cleanup-evidence-freshness
fix: reject untimed cleanup evidence under a freshness bound
2026-11-28 14:55:17 -08:00
Ping Qiu 812798b5ef Merge pull request #717 from seaweedfs/docs/upgrade-v1.0.1
docs: upgrade from v1.0.0 to v1.0.1
2026-11-28 14:54:31 -08:00
Ping Qiu c295031dff Merge pull request #720 from seaweedfs/ci/csi-process-coverage
ci: require CSI real-binary process tests
2026-11-28 14:52:23 -08:00
Ping Qiu 5d9d8fd0dc Merge pull request #721 from seaweedfs/docs/backup-warning
docs(operator-guide): SeaweedFS's S3 backup sink is not a backup of a block volume
2026-11-28 14:50:47 -08:00
pingqiu cd1768ae9f test: keep production freshness during survivor rejoin 2026-11-28 14:42:09 -08:00
pingqiuandClaude Opus 5.5 0193713925 fix(sw-block): mini shell-quotes the paths and NQN in the commands it prints
The resume command (now on its own line), the connect and disconnect
commands and the logs path quote the dir and NQN for a POSIX shell, so a
--dir with a space or a quote gives a line that runs as printed. Tests:
shQuote round-trips through a shell-word split; the printed resume line,
split as a shell splits it, reaches a spaced dir's recorded run, while
the unquoted line does not.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 14:25:19 -08:00
pingqiuandClaude Opus 5.5 30226ef264 fix(sw-block): mini records its binaries' directory and --reuse loads the record before finding them
A run started with --bin records that directory (absolute) in mini.json;
--reuse loads the record before any binary lookup, so a bare --reuse
finds the same blockmaster and blockvolume, and a --bin that differs from
the record is refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 14:19:16 -08:00
pingqiuandClaude Opus 5.5 552778c546 docs(readme): direction states what was run where; mini; Kubernetes alpha
The planned hand-over ran across two machines on the release candidate (recorded in the measurements, and the lifecycle table's row updated); the forced move was tested with two server identities on one machine and restores from the last cut. v1.0.1 lists sw-block mini first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 14:16:22 -08:00
pingqiuandClaude Opus 5.5 f74e1246ff fix(sw-block): mini sets weed's admin ports and records the run for --reuse
Review follow-up. weed mini always runs its admin server (-admin.ui=false
only hides the UI): its HTTP and worker gRPC ports are now set,
preflighted and shifted, and its legacy listener pair is off
(-admin.port.legacy=0); mini owns 13 ports. A fresh start records the
run's size, port shift, mode (its weed) and NQN in <dir>/mini.json;
--reuse starts that run again, refusing a flag that differs from the
record, a recorded weed that is gone, and a walstore run while a weed is
found (never a silent change of mode).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 14:11:52 -08:00
pingqiuandClaude Opus 5.5 83b5d9a819 docs(readme): direction: what works today, what v1.0.1 adds, what comes after
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 14:09:24 -08:00
Ping Qiu 79a7801a9d Merge pull request #689 from seaweedfs/fix/fresh-fill-clean
fix(storage): a chunk filled from HEAD is not a cut candidate while unchanged
2026-11-28 13:59:34 -08:00
Ping Qiu 68f0838b5e Merge pull request #716 from seaweedfs/docs/readme-rewrite
docs(readme): rewrite: pitch, two-path diagram, why, chart
2026-11-28 13:54:42 -08:00
pingqiuandClaude Opus 5.5 d6ef70d2fe fix(sw-block): mini binds weed to loopback, owns every port and its dir, and watches all children
Review follow-up. weed mini gets -ip.bind=127.0.0.1 (its -ip alone is the
advertised address; the bind defaulted to 0.0.0.0), every listener's port
explicitly (master, volume and filer HTTP and gRPC), all preflighted and
moved by --port-shift, and its S3, WebDAV and admin UI off. --size refuses
an overflowing value. The dir is claimed by one exclusive mkdir (or must
exist with --reuse) and held by a lock for the run, before any write.
Startup and the layout id wait stop at once when any child dies.

Tests: the supported commands pinned value for value, with controls; a
busy weed port; port shift; one mini per dir; weed dying during startup;
the process tests register their bounded cleanup before any assertion.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 13:47:39 -08:00
pingqiuandClaude Opus 5.5 9613086d50 fix(sw-block): mini prints only commands it has, and says to disconnect before stopping
Review follow-up. The next steps name only commands this binary runs (the
workspace show and chunk snapshots checks, a snapshot), each parsed by a
test; no shell line until the shell exists. Without weed, the missing
chunk store is mini's own sentence, not a check that did not run. With
the connect command and again at stop, mini says to unmount and nvme
disconnect first; at stop it says the data stays in --dir and --reuse
resumes it; one line names it a trial setup (one host, loopback, no
authentication).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 13:44:41 -08:00
pingqiu 4c7c99cf18 test: match cleanup evidence to bundle capture time 2026-11-28 13:40:52 -08:00
pingqiu c88406df7f fix: require evaluation time for cleanup freshness 2026-11-28 13:40:27 -08:00
pingqiuandClaude Opus 5.5 33474e882d feat(sw-block): mini --port-shift moves every port; weed mini's filer gRPC and volume ports are passed and checked
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 13:38:05 -08:00
pingqiuandClaude Opus 5.5 7b7c9b36fd feat(sw-block): mini starts the single-host setup in one command
sw-block mini starts weed mini (when a weed binary is found: --weed, else
PATH), blockmaster and one blockvolume (v1) on loopback with the
standalone page's flags: walstore-chunk with the chunk control endpoint
and the workspace lease when weed is there, walstore with a banner in
its first lines when it is not. It prints every command it runs, refuses
an existing --dir unless --reuse and a busy port, never runs sudo or
nvme connect (it prints the connect command and the next steps), and
stops every child, the last started first, on Ctrl-C or when one exits.

A test pins mini's walstore commands to the page's swb_start block and
every chunk flag to a flag the page documents.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 13:35:11 -08:00
pingqiu 7cfac5eee9 fix: require timestamps for age-bounded cleanup evidence 2026-11-28 13:34:19 -08:00
pingqiuandClaude Opus 5.5 2422388689 docs(upgrade): stage, check, then rename each binary into place
install unlinks and copies, so a unit starting during the copy could find a partial file; a staged file renamed in the same directory is atomic. The same for blockmaster and the CLI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 13:29:08 -08:00
Ping Qiu be1f66983e Merge pull request #718 from seaweedfs/test/csi-create-rf-fixture
test: align CSI create fixture with master replication factor
2026-11-28 13:28:33 -08:00
pingqiuandClaude Opus 5.5 d24aeeee42 docs(testdata): workspace-move primary evidence is pinned; only replicated promotion evidence is not
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 13:26:20 -08:00
pingqiuandClaude Opus 5.5 278f37381a docs(upgrade): per host, cut each volume, replace the binary, restart each holder
The documented restart without a hand-over is the procedure; the cut is recommended, not required; seal and move stay optional.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 13:24:27 -08:00
pingqiuandClaude Opus 5.5 f45d12dd41 docs(upgrade): step 2's other answers and what to do
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 13:22:50 -08:00
pingqiuandClaude Opus 5.5 e750c00f30 test(authority): v1.0.0 workspace lines (live lease, revoked with ACK, clean and forced moves), generated on the tag
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 13:22:08 -08:00
pingqiuandClaude Opus 5.5 f62193d096 test: master-stores guard compares raw bytes, complete records and workspace decisions (workspace fixtures follow)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 13:19:37 -08:00
pingqiuandClaude Opus 5.5 a87ffd8354 docs(operator-guide): the backup-sink warning states the measured facts only
Measured with SeaweedFS 4.53: the S3 sink copied the bytes but no entry attribute, the copy did not open, and three attribute-only updates of a 4 MiB chunk sent three full uploads. The unmeasured remote-storage and second-filer statements are dropped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 13:19:26 -08:00
pingqiuandClaude Opus 5.5 9cf08758e1 test: v1.0.0 fixtures of the master's stores, generated on the tag
Generated on the v1.0.0 tag checkout (25a3b755), on Linux: the lifecycle
stores (volume records, placements, node inventory, deletion
reservations, bindings), the authority store (lines and lost ranges) and
the store attestations. Today's stores write the same files (volume
records compared with their store-minted layout ids blanked) and read
them as the same records; each file's blob hash is pinned.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 13:10:35 -08:00
pingqiuandClaude Opus 5.5 b3e4677d4d test(lifecycle): the golden placement is an existing replica's slot
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 13:09:12 -08:00