Commit Graph
4075 Commits
Author SHA1 Message Date
Ping Qiu 7fe026461e Merge pull request #741 from seaweedfs/test/cut-attempt-progress
test(storage): a cut attempt that runs out of time leaves uploads the next attempt keeps
2026-11-29 00:12:29 -08:00
Ping Qiu c157b7f5ae Merge pull request #739 from seaweedfs/fix/commit-precompute
fix(layout): plan a commit once and bound only the HEAD step
2026-11-29 00:11:57 -08:00
Ping Qiu ede3934181 Merge pull request #732 from seaweedfs/feat/typed-cut-head-status
feat, status: expose typed cut phases and HEAD write counters
2026-11-29 00:00:38 -08:00
Ping Qiu 58dd447b22 Merge pull request #743 from seaweedfs/fix/reader-volume-id-race
fix(layout): guard the reader's volume id cache against concurrent reads
2026-11-28 23:57:06 -08:00
Ping Qiu 111f13d6b0 Merge pull request #728 from seaweedfs/feat/cut-phase-debug
feat, storage: retain working cut phase timings at INFO
2026-11-28 23:50:09 -08:00
Ping Qiu 745c20715d Merge pull request #727 from seaweedfs/feat/log-level-utc
feat, logging: add log levels and UTC microsecond timestamps
2026-11-28 23:43:55 -08:00
Ping Qiu 36d90c3f66 Merge pull request #730 from seaweedfs/docs/readme-mini
docs(readme): sw-block mini on main, after the v1.0.0 first check
2026-11-28 23:42:45 -08:00
Ping Qiu 1872b9c3c3 Merge pull request #746 from seaweedfs/fix/mini-usage-restore
fix(sw-block): mini's usage says a restore is not possible inside a mini trial yet
2026-11-28 23:40:31 -08:00
Ping Qiu c902fd4b7d Merge pull request #745 from seaweedfs/test/maintenance-probe-race
test(durable): the maintenance probe tests' fakes are safe across the loop's goroutine
2026-11-28 23:39:55 -08:00
pingqiuandClaude Opus 5.5 9410227d80 docs(invariants): the reader is safe for concurrent reads
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 23:37:10 -08:00
pingqiuandClaude Opus 5.5 7c3fdd2762 fix(layout): guard the reader's volume id cache against concurrent reads
A cut's parallel uploads share one Reader, and its volume id cache was a
plain map read and written without a lock: a data race under -race. A leaf
mutex now guards the map, held only around its read and write, never across
a fetch. The abort test's blocking store no longer writes its channel field
from the commit's goroutine while the test reads it; a sync.Once holds the
first commit instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 23:37:10 -08:00
Ping Qiu afb9e86a11 Merge pull request #726 from seaweedfs/feat/head-write-logs
feat, chunkstore: log HEAD writes with census causes and sessions
2026-11-28 23:27:37 -08:00
pingqiuandClaude Opus 5.5 3b109f7007 docs(readme): what stops a restore in mini is blockmaster's admission
The online create command is on main. A restore into a new volume inside a
mini trial is refused because mini's blockmaster admits only the volume in
its one-volume cluster spec while its product loop is off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 23:19:14 -08:00
pingqiuandClaude Opus 5.5 19ca019535 fix(sw-block): mini's usage says a restore is not possible inside a mini trial yet
The usage text said snapshots and restore work at once with weed; a restore
into a new volume needs the standalone setup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 23:11:18 -08:00
pingqiuandClaude Opus 5.5 8e9ed5d478 docs(standalone): mini's quick start says a restore is not possible inside a mini trial yet
The quick start said snapshots and restore work at once with weed; a
restore into a new volume needs the standalone setup, as the README says.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 23:09:20 -08:00
pingqiuandClaude Opus 5.5 7aa7f1bc22 test(durable): the maintenance probe tests' fakes are safe across the loop's goroutine
The maintenance loop reads the fake store and bumps the pass counter on its
own goroutine while the test changes them; under -race both tests failed.
The store is guarded by a mutex and ReadHead returns a copy of its snapshot
map; the counter is atomic.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 23:05:33 -08:00
Ping Qiu dfe4515abb Merge pull request #744 from seaweedfs/ci/test-hosted
ci: run pull-request tests on GitHub-hosted runners
2026-11-28 22:42:08 -08:00
pingqiuandClaude Opus 5.5 aaef4cf5d6 ci: run pull-request tests on GitHub-hosted runners
Pull requests queued for over an hour behind three self-hosted runners while
GitHub-hosted runners, free for this public repository and already used for
fork PRs, start within about a minute and run many jobs in parallel. Pushes to
main keep the self-hosted tp04 runner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 22:38:42 -08:00
Ping Qiu 20891c8e93 Merge pull request #713 from seaweedfs/feat/head-write-cause
feat(layout): every HEAD write names its census row (typed HeadWriteCause)
2026-11-28 22:37:22 -08:00
pingqiuandClaude Opus 5.5 e1a2cdd4e3 fix(chunkstore): the commit check returns at once for the checked commit in its open session
A re-proposal after an unknown outcome runs the commit check again before
its CAS; the check forgot the kept commit first and looked up every object
again. It now returns at once for exactly the checked commit in its still
open session, the same match the CAS uses to reuse the preparation. The
re-proposal test counts every lookup, not only those inside the CAS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 22:00:55 -08:00
pingqiuandClaude Opus 5.5 70d29c86b9 fix(storage): every HEAD commit of the chunk layer runs the object check first
A detach's cancellation and an unresolved cut's re-proposal now run the
object check before their CAS, as the cut's commit does. The cancellation
adds no chunk, but its new root's segments and root were looked up inside
the HEAD step's fixed limit. The guard requires the check before every HEAD
commit site and lists no exemption; the fixed-limits row names it and the
cancellation's control.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 21:52:28 -08:00
pingqiu 34374abbd5 docs: clarify session ownership of the first empty snapshot root 2026-11-28 21:49:22 -08:00
pingqiu 8ed1854564 test, status: cover both exclusive HEAD creation census rows 2026-11-28 21:49:22 -08:00
pingqiu a7bc8aa685 feat, status: bind counter windows to the live process identity 2026-11-28 21:49:22 -08:00
pingqiu 25e94b4bb1 feat, status: separate unknown HEAD outcomes from acknowledged writes 2026-11-28 21:49:22 -08:00
pingqiu 792719e51a test, status: check exported census against real HEAD transitions 2026-11-28 21:49:22 -08:00
pingqiu a5515a9be5 fix, logging: keep idle cut attempts at DEBUG 2026-11-28 21:49:21 -08:00
pingqiu 85ce02cb3b test: compare procedure log times as precise UTC instants 2026-11-28 21:49:21 -08:00
pingqiu 15c1f4a33b test: keep typed delete stdout separate from HEAD diagnostics 2026-11-28 21:49:21 -08:00
pingqiu 74f07c95c5 test, status: bound durable status reads during a held cut 2026-11-28 21:49:21 -08:00
pingqiu 619f1de421 feat, logging: retain every cut attempt at INFO 2026-11-28 21:49:21 -08:00
pingqiu a9f69b663f docs, logging: identify the timestamp change as v1.0.1 2026-11-28 21:49:21 -08:00
pingqiu 524df86aea test, status: export the HEAD census and cover cancellation boundaries 2026-11-28 21:49:21 -08:00
pingqiu 9915ca8d61 test, logging: qualify failed and recovered cut timing spans 2026-11-28 21:49:21 -08:00
pingqiu d00a1fd438 docs, logging: clarify debug plumbing and timestamp compatibility 2026-11-28 21:49:21 -08:00
pingqiu efc446b90e feat, status: count acknowledged HEAD writes by census cause 2026-11-28 21:49:21 -08:00
pingqiu 35bab9be86 fix, logging: label cut timings by volume and leave successful errors empty 2026-11-28 21:49:21 -08:00
pingqiu 52207a9bc5 feat, logging: add verbosity flags and UTC microsecond timestamps 2026-11-28 21:49:21 -08:00
pingqiu 74bb66fc99 fix, status: retain attempt age and publish one cut observation 2026-11-28 21:49:21 -08:00
pingqiu ba933ec0c8 docs, logging: describe the enabled cut diagnostics and unknown outcomes 2026-11-28 21:49:21 -08:00
pingqiu 7534c0fc99 test, status: cover unresolved cut settlement observations 2026-11-28 21:49:21 -08:00
pingqiu d866004634 feat, storage: report existing cut phase timings at debug 2026-11-28 21:49:21 -08:00
pingqiu 3699af659f feat, status: expose the current cut phase without log parsing 2026-11-28 21:49:21 -08:00
Ping Qiu 9ac1bcf4f9 Merge pull request #738 from seaweedfs/docs/upgrade-mixed-version
docs(upgrade): order rule and three mixed-version facts
2026-11-28 21:39:36 -08:00
Ping Qiu 6d63003461 Merge pull request #735 from seaweedfs/feat/volume-start-stop
feat(sw-block): volume start and volume stop
2026-11-28 21:39:01 -08:00
Ping Qiu ac180bdee8 Merge pull request #742 from seaweedfs/ci/spec-trace-hosted
ci: run the spec trace check on a GitHub-hosted runner
2026-11-28 21:37:39 -08:00
pingqiuandClaude Opus 5.5 3609d3c5c1 docs(invariants): fixed limits surround bounded work only; guard the unchecked commit
Change rule 7 and table C.L: one row per fixed time limit around work that
grows with the volume, with what runs inside it, what runs outside it under
progress, and its test; three start-path and control rows are STUB until
measured. The unchecked commit is a stated gap kept true by a guard that
classifies every HEAD commit site of the chunk layer and requires the
object check before the cut's commit. Comments at the commit step's lookups
and at the HEAD bound's default mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 21:36:23 -08:00
pingqiuandClaude Opus 5.5 3ad4bf2079 test(storage): the timed-out cut attempt ends by deadline and by cancel; the published image is checked
The first attempt is ended both by a real context deadline and by a cancel,
and must return within a bound. The next attempt's HEAD is read back: every
one of the 262,144 chunks named with its written bytes, the frontier, and
every chunk the first attempt uploaded; a control drops one of those and is
refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 21:33:21 -08:00
pingqiuandClaude Opus 5.5 3d09c242b4 ci: run the spec trace check on a GitHub-hosted runner
The check only reads the PR description and the changed-file list. On the
self-hosted runners it waited behind full test jobs for over an hour and held
back merges whose tests had already passed. Hosted jobs in this repository
start within about a minute.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 21:29:53 -08:00
pingqiuandClaude Opus 5.5 3c97bc1b27 test(storage): a cut attempt that runs out of time leaves uploads the next attempt keeps
At 262,144 changed chunks, a cut whose context ends after a third of its
uploads leaves HEAD unchanged; the next attempt uploads only the chunks not
yet uploaded and sends none again. Fails when uploads are not remembered
across attempts (the next attempt uploads all 262,144).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 21:21:38 -08:00