Commit Graph
3687 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 178bc562eb Merge #640's branch (with main ab626792) into ci/process-level-tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 08:52:11 -08:00
pingqiu e2b2c82d1f Merge main (RC ab626792) into the test-only change 2026-11-26 08:50:18 -08:00
pingqiuandClaude Opus 5.5 84bc84e031 Merge #640's branch at its newest head into ci/process-level-tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 08:20:42 -08:00
pingqiuandClaude Opus 5.5 e69da157fc Merge main (the release candidate, ab626792) into ci/process-level-tests
So the process-level suite runs on the RC product tree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 08:20:29 -08:00
pingqiuandClaude Opus 5.5 bac18bf79d Layout lookups wait until blockmaster serves
blockmaster logs "lock acquired" before it imports the cluster spec, which
creates each volume's layout on the filer, and serves only after that. A
harness that looks a volume up right after that line can find it not
serving yet (F1 with ten volumes: DeadlineExceeded waiting for the
connection). layoutID now retries an Unavailable or DeadlineExceeded
answer within 60 s; any other answer still fails at once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 07:41:20 -08:00
pingqiuandClaude Opus 5.5 4d8a2d5600 Merge #640's branch at its newest head into ci/process-level-tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 07:26:02 -08:00
pingqiuandClaude Opus 5.5 e647276503 F1 load writers retry a refused command as the Linux NVMe host does
Under F1's load a write can be refused with a retryable status (namespace
not ready, Do Not Retry clear) when local admission waits past its bound;
the command is not acknowledged and the Linux host retries it. The load
writers now do the same through retryLikeHost: only a Do-Not-Retry-clear
status is retried, at most 5 times (nvme_core max_retries), and the round
fails once the retries are used up, as the host returns EIO then. A status
with Do Not Retry set, a transport error or a lost byte still fails at
once. Each round reports busy_refusals and max_consecutive_busy per volume.
F1_NVME_RETRIES=0 turns the retries off. Controls: five refusals then
success pass; six fail; retries off fails on the first refusal; Do Not
Retry set and transport errors fail at once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 07:16:53 -08:00
Ping Qiu ab6267922d Merge pull request #648 from seaweedfs/fix/ack-budget
volume: the revocation ACK's bound exceeds what the master spends on it
2026-11-26 06:25:25 -08:00
pingqiuandClaude Opus 5.5 9602e2e6df Merge #640's branch at its newest head into ci/process-level-tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 06:24:59 -08:00
pingqiu de1ca8c235 test(blockvolume): control: weed port pairs never use the ephemeral range
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 496b933f482ce955a863d7aa579e6d1ea45b3d15)
2026-11-26 06:19:00 -08:00
pingqiu cb51f2ebe9 test(blockvolume): weed port pairs avoid the host's ephemeral port range
w4FreePortPair checked a pair free and weed bound it later; a pair inside
ip_local_port_range could be taken in between by any outgoing connection's
source port (seen: a filer's gRPC port 43775 inside a host's 43255-47350,
"bind: address already in use", with extra volumes adding connections).
handoffAddress already stays below that range for the same reason.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit a54fcdde5ea81b1d23396c45ace385038288553a)
2026-11-26 06:19:00 -08:00
Ping Qiu b93c662ec1 Merge pull request #647 from seaweedfs/fix/delete-rerun-missing-roots
chunkstore: a volume-delete re-run completes on a deleted or interrupted volume
2026-11-26 06:18:32 -08:00
Ping Qiu c612bf63d8 Merge pull request #645 from seaweedfs/fix/replicated-needs-product-loop
blockmaster: refuse a replicated cluster spec with the product loop off
2026-11-26 06:10:53 -08:00
pingqiuandClaude Opus 5.5 eec08968ba test(volume): the lease-deadline control sees the ACK dispatched and its deadline
The fake ACK records that it was entered with a live context and the
deadline it carried; the test requires DeadlineExceeded, that deadline at
the 1 s lease deadline (before the 5 s ACK bound and the caller's), no
held lease afterwards and no completed ACK. A pre-dispatch error and an
ACK bounded by the parent context alone each fail it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 05:55:50 -08:00
pingqiuandClaude Opus 5.5 80d9839b8c test(chunkstore): a root read failure on a deleting or deleted volume writes nothing
The read-failure case now runs on a deleting and on a deleted HEAD, and
also checks the fake filer's update and delete counters: the failed
re-run releases no source and deletes no object.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 05:53:32 -08:00
pingqiuandClaude Opus 5.5 043aee6490 test(volume): the lease deadline still cuts a slow ACK; the closeout note says 6 s
A revoking lease valid for 1 s and a master answering after 3 s: the ACK
call is cancelled at the lease deadline (about 1 s), not at the 5 s ACK
bound, and nothing is reported acknowledged; an ACK bound by the parent
context alone fails it. The invariants note now names the 6 s closeout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 05:51:22 -08:00
pingqiuandClaude Opus 5.5 a9dbdd756c test(chunkstore): a read failure of a deleting volume's root is returned, not skipped
A root whose read fails with an ordinary error (not missing, not corrupt)
on a deleting HEAD makes the re-run return that error, skip nothing and
leave HEAD unchanged; the fake filer gains a failLookup hook (test only).
Skipping every error on a deleting HEAD fails it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 05:48:57 -08:00
pingqiuandClaude Opus 5.5 c8b4754258 fix(volume): the revocation ACK's bound exceeds what the master spends on it
The holder gave its revocation ACK call 2 s and the closeout 3 s, while the
master's handler spends up to 2 s on its bounded HEAD read and then writes
the ACK and reconciles the bindings (about 0.3 s, measured), behind its
workspace lock. A slow but successful ACK could fail at the holder (exit
75), also after the master recorded it.

WorkspaceAckTimeout (5 s, about 2.7 s above the master's measured steps,
stated in its comment) bounds the ACK call, still within the lease
deadline; the post-drain closeout is that plus 1 s. Constants only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 05:45:37 -08:00
pingqiuandClaude Opus 5.5 a6a2d4433c fix(chunkstore): a volume delete re-run completes on a deleted or interrupted volume
BCatalog.DeleteVolume finds the volumes to release by reading every root
the volume's HEAD names (foreignOwners). A deleted HEAD still names its
roots, whose objects the first run deleted, so the documented re-run ("a
re-run on a deleted volume sweeps any object that landed late") failed
with "layout: object missing"; so did the re-run of a delete interrupted
after it began deleting objects.

layout.DeleteVolume deletes a volume's objects only after it released the
volume from every source, so on a deleting or deleted HEAD a root whose
objects are gone has nothing left to release. foreignOwners now skips
exactly that: layout.ErrMissing on a deleting or deleted HEAD. A corrupt
object, an I/O error, and a missing root of a live HEAD stay errors. The
skipped roots are returned, and volume-delete reports them
(already_deleted_roots).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 05:42:55 -08:00
pingqiu f55029d4cb Merge main (with #646) into the start guard: both ledger rows kept 2026-11-26 05:32:36 -08:00
pingqiuandClaude Opus 5.5 c86586a124 Holder snapshot delete retries only a lost HEAD update
A snapshot delete is one conditional update of HEAD, and the holder's
cleaning kicked by the previous delete also updates HEAD; D4's second
delete lost that race once (status 500, "HEAD generation moved"). The
helper retries exactly that answer, within 30 s, as the CLI reports it
retryable; every other answer is returned unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 05:32:14 -08:00
Ping Qiu 80b8982669 Merge pull request #646 from seaweedfs/fix/create-rf-matches-master
master: CreateVolume refuses a replication factor the master does not decide
2026-11-26 05:30:05 -08:00
pingqiuandClaude Opus 5.5 d0b237fd25 Merge #640's branch at its newest head into ci/process-level-tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 05:29:18 -08:00
pingqiu 3da208d7d4 test: require successful filer creates for crash receipts
(cherry picked from commit 7b9c7eb68e9273df35665527665ad0edadf4d925)
2026-11-26 05:19:32 -08:00
pingqiu 184f4eacd4 test: preserve the advertised filer identity at crash boundaries
(cherry picked from commit ff6490991ae0dbad1dd285ebac35ea6a49282e0a)
2026-11-26 05:19:31 -08:00
pingqiu 82f6d2f1c8 test: crash snapshots at applied filer boundaries
(cherry picked from commit e864c34bd1fd0f5807f80161fd75f17ae81013e9)
2026-11-26 05:19:31 -08:00
pingqiu d3fddb7533 test: observe layout handoff claims and moved-source refusals 2026-11-26 04:45:30 -08:00
pingqiuandClaude Opus 5.5 49389c8bd5 test(master): the G15c create test runs on a master that decides RF2 volumes with its loop on
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 04:41:21 -08:00
pingqiuandClaude Opus 5.5 29927c478c test(blockmaster): the start refusal runs blockmaster as a bounded child
The refusal test ran run() in a goroutine and could leave it serving on a
hang. It now re-executes the test binary as a helper process under a
10 s context (killed at the deadline and joined; exec closes its pipes).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 04:25:57 -08:00
pingqiuandClaude Opus 5.5 2ba005c464 hydrate reads a block of each chunk the guest has not written
A read fetches its chunk only when the block read is not local; the
helper read each chunk's first block, which the ladder images write, so a
chunk whose first block the guest wrote was never filled (two chunks of
C3-kill stayed absent). It now reads each chunk's last block, which no
ladder image writes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 04:25:14 -08:00
pingqiuandClaude Opus 5.5 584ce5e67a Merge #640's branch at its newest head into ci/process-level-tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 04:23:15 -08:00
pingqiuandClaude Opus 5.5 48e77c05b8 fix(master): CreateVolume refuses a replicated volume while the product loop is off
Only the lifecycle product loop binds, mints and promotes a replicated
lifecycle volume. With --lifecycle-product-loop-interval at 0 a replicated
create was admitted (its factor matching) and never got a primary.
blockmaster now tells the master whether its loop runs
(Config.LifecycleProductLoop), and CreateVolume refuses RF > 1 while it
does not, naming the flag; RF1 creates are admitted either way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 04:19:30 -08:00
pingqiuandClaude Opus 5.5 97942ab998 fix(blockmaster): the startup checks read every cluster-spec entry's placement
A placement-only replicated entry (no size_bytes) has a placement intent
and no volume spec, so checking the volume specs let it through both
refusals. Both now read the placement intents (DesiredRF), which every
entry has; red tests for a placement-only RF2 on an expected-3 master and
a placement-only RF3 with the loop off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 04:18:00 -08:00
pingqiuandClaude Opus 5.5 278dcc2eef fix(blockmaster): also refuse a cluster spec volume of another replication factor
A replicated cluster-spec volume whose replication factor differs from
--expected-slots-per-volume would make the controller refuse every
decision (one slot count per cluster); blockmaster now refuses to start,
naming the volume and both counts, also with the product loop on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 04:15:30 -08:00
pingqiuandClaude Opus 5.5 613c5d4789 fix(master): CreateVolume refuses a replication factor the master does not decide
The controller validates every replicated volume it decides against the
master's one slot count (--expected-slots-per-volume) and refuses the whole
decision when one differs. CreateVolume accepted any replication factor, so
an RF2 create on an RF3 master gave a 2-slot placement which, once its
replicas heartbeat, stopped assignment and failover for every replicated
volume of the cluster.

CreateVolume now answers FailedPrecondition, naming both counts, when a
replication factor above 1 differs from the master's. Single-replica
volumes (which never reach the check) are admitted as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 04:13:25 -08:00
pingqiuandClaude Opus 5.5 deee2e25ff docs(invariants): INV-AUTH-REPLICATED-SPEC-NEEDS-LOOP-001 for the startup refusal
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 04:03:48 -08:00
pingqiuandClaude Opus 5.5 bb97d6a7f4 fix(blockmaster): refuse a replicated cluster spec with the product loop off
With --cluster-spec, a replicated volume's placement is bound, its line
minted and its promotion gate run only by the lifecycle product loop. With
--lifecycle-product-loop-interval at its default 0 that loop never runs,
so the master starts, accepts heartbeats and never gives the volume a
line; every replica waits at epoch 0 with no error.

blockmaster now refuses to start when its cluster spec holds a volume with
replication factor above 1 and the loop is off, naming the flag. A static
--topology (whose observation controller mints) and single-replica volumes
are untouched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 04:00:07 -08:00
pingqiuandClaude Opus 5.5 a4db4270b3 C3 kill: fill progress lost to a kill is not a failure
A chunk made local is recorded in the store at its next checkpoint, so a
kill shortly after a fill may leave that chunk absent again; it is fetched
again on its next read and no data is lost. The test no longer requires
fill progress to survive the kill (it logs it) and keeps every data check:
no partly filled chunk is served, and every acknowledged write survives.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 03:28:30 -08:00
pingqiuandClaude Opus 5.5 c300cf3173 F1 restore targets are placement only
Each round's restore target was listed with size_bytes, so blockmaster
created it as an ordinary volume and the restore into it was refused
(target_exists: bound to another restore request). Targets now carry their
placement only and their restore creates them; sources are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 03:28:29 -08:00
pingqiuandClaude Opus 5.5 97171f2a97 Merge #640's branch at its newest head into ci/process-level-tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 03:28:23 -08:00
pingqiuandClaude Opus 5.5 ff604a3b27 ci: skip the harness's cleanup headers when showing a failed test's own messages
Run 3 at 19cef1c printed each failed test's own file:line lines, but for
two tests the twelve shown were all cleanup headers ('<process> log:',
'---- <x> log tail ----'), pushing the failing assertion out. Those
headers and successful command echoes are no longer counted. Control: the
reason is shown behind 21 such headers; a mutant without the filter turns
it red.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 03:28:22 -08:00
pingqiuandClaude Opus 5.5 c21893a68f Keep the invariants row out of the test-only change
The v1-limit note on INV-WS-DELETE-NO-LIVE-HOLDER-001 moves to the
documentation change: a test-only change touches tests and testdata only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 03:20:40 -08:00
pingqiu ee832825c5 Merge the known-zero step-5 fresh-state fix 2026-11-26 03:01:28 -08:00
pingqiuandClaude Opus 5.5 46753ef609 test: known-zero step 5 reads the fresh state from the store descriptor
Step 5 holds the first start of a fresh volume before the attach commit
retires the fresh state, kills it there, and must see the store still
fresh. It looked for a <volume>.chunkfresh sidecar, which the cutover to
the content-named store removed: the fresh state is now in the store's
descriptor (WALStore.SetLayoutIdentity / LayoutIdentity). Every try
therefore read "marker always gone" although the product held at the
right boundary.

kzFreshAtStop opens the killed store (under its <volume>-<id8> layout
directory, or under the root without one) and requires LayoutIdentity()
set and fresh; markers_at_stop records the store read and what it held.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:57:11 -08:00
pingqiuandClaude Opus 5.5 b76698d7b5 test(blockvolume): v1 deletes a never-started line once its lease horizon passed
A never-started line that holds a lease (a first start stopped at the
grant, a clean-move target that never started) is refused by the delete's
reservation while that lease may be live, and completes when the same
delete is rerun past the horizon the refusal names (nobody renews it).
The three tests now assert that, through deleteAfterTheHorizon: any
other refusal still fails them, and every fencing assertion stays (a late
start after the delete is still refused, the claimed control is
unchanged). The immediate delete of such a line is the 1.0.1 fix.

INV-WS-DELETE-NO-LIVE-HOLDER-001 states the v1 limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:51:08 -08:00
pingqiuandClaude Opus 5.5 19cef1c03a ci: keep the process-level job on the team runners for now
The move to GitHub-hosted runners is held until the account's billing is
fixed; the job uses the Go suite's runner selection again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:46:05 -08:00
pingqiuandClaude Opus 5.5 56c45dc284 ci: show a failed test's own messages, not only the harness's log dump
Run 2 at 774ee23 showed the last 40 lines of each failed test, which were
the harness's SeaweedFS log tails printed after the failure; the test's
own file:line messages fell outside. The gate now prints the test's own
messages (its last 12 file:line lines at the test's indent) and then its
last 5 lines. Control: the reason line is shown behind 60 lines of log
noise; a mutant that drops the own lines turns it red.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:37:47 -08:00
pingqiuandClaude Opus 5.5 6f826ab366 ci: run the process-level job on a GitHub-hosted runner
The named tests need no root; a hosted ubuntu-latest runner is free for
this public repository, so the team's runners stay free for the Go suite
and the lab. SeaweedFS is still fetched and sha256-checked each run;
nothing is assumed of a runner cache.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:34:08 -08:00
pingqiuandClaude Opus 5.5 774ee23f79 ci: show each failed named test's last output lines
The events file is not kept, so the job log showed which tests failed but
not why. The gate now prints the last 40 output lines of every named test
that did not pass. Control: a failed test's reason line appears.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 01:53:36 -08:00
pingqiuandClaude Opus 5.5 144ad93c06 Merge #640's branch at its newest head into ci/process-level-tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 01:46:08 -08:00