Commit Graph
615 Commits
Author SHA1 Message Date
pingqiu 84111fd66f feat: validate declared host timeout against WAL hold cap 2026-12-02 04:12:10 -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 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 dccff2f073 test: F1 retries only an exact listener-bind EADDRINUSE on the attempt's own drawn address, and keeps the first attempt's log (#927 review)
P1: f1WaitAdopted took any log line containing "address already in use"
as a taken port. It now passes the attempt's four drawn addresses to
bindTakenOn, which accepts only Go's listener error ending a line,
"listen tcp <addr>: bind: address already in use", with <addr> one of
them; a different port or host, a dial, a quoted copy, text after it, udp
or the bare words are not a taken port, so the start fails as before.

P2: the retry starts as blockvolume-<key>-attempt2, so the first attempt's
log is not truncated, and startWithBindRetry returns the first attempt's
error, which the test logs (address and log path) before the retry's
answer.

Red: TestBindTakenOnOnlyThisAttemptsListener fails with the previous
substring rule; TestStartWithBindRetry checks attempt numbers and the
kept first error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 21:50:37 -08:00
pingqiuandClaude Opus 5.5 de43d48be4 test: a holder's harness-chosen port is drawn below the host's ephemeral range, and a start that lost its port is retried once (#927)
handoffAddress drew from [10000, 20000) whatever the host's ephemeral range;
it now cuts the range at the host's ip_local_port_range low end
(handoffRange), as the weed port pairs already do. F1's holder start
(f1Up) answers errBindTaken when the holder exits before adopting with
"address already in use"; startWithBindRetry then draws the holder's four
ports again and starts it once more (v1, whose ports the cluster spec
names, is not retried). Any other failure, or a second taken port, fails
the test as before.

Red first: TestHandoffRangeStaysBelowTheEphemeralRange (a host whose
ephemeral range starts at 15000 must get [10000, 15000)) and
TestStartWithBindRetry (a taken port, then ok: one retry with fresh
ports) fail with the previous behaviour and pass here.

Refs #927.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 21:42:59 -08:00
pingqiu f459e5c208 test: require an existing kernel namespace block device 2026-12-01 20:53:22 -08:00
pingqiu 73c99f5a05 test: prove owned kernel controller teardown after retry procedure 2026-12-01 20:48:22 -08:00
pingqiu 1b9dbbaea3 feat: negotiate NVMe command retry delays for transient readiness 2026-12-01 20:15:19 -08:00
pingqiu 935b7c46cb test: print each retryable completion and retry decision 2026-12-01 19:32:12 -08:00
pingqiu 5ac568bc79 test: retry transient NVMe completions within host budget 2026-12-01 19:28:56 -08:00
Ping Qiu 4655664cf5 Merge pull request #903 from seaweedfs/fix/cgroup-unresolved-fallback
blockvolume: an underivable cgroup memory limit starts on the default
2026-12-01 17:40:12 -08:00
pingqiuandClaude Opus 5.5 07b3d31697 blockvolume tests: adopt waits for the holder's frontend to admit I/O, not only a healthy primary
Fixes #905.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 16:44:01 -08:00
Ping Qiu fe3f484a88 Merge branch 'main' into fix/cgroup-unresolved-fallback 2026-12-01 16:21:04 -08:00
pingqiuandClaude Opus 5.5 7a70a7a1ca blockvolume: an underivable cgroup memory limit starts on the default
With neither --memory-limit-mib nor GOMEMLIMIT, a cgroup v2 limit that
cannot be derived (a membership outside the cgroup2 mount of the holder's
mount namespace, an unreadable or malformed memory.max) is the no-limit
case: the holder keeps the 256 MiB default and starts, instead of exiting
2. applyMemoryLimit, run once logging is configured, logs one level=WARN
line naming the derivation's error and the two ways to choose a limit, and
status reports the reason in Memory.SoftLimitFallback (empty otherwise).
Only an explicit but invalid limit still refuses.

Docs: the flag's help, the operator guide's memory section, the status
schema and the v1.1 notes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:46:02 -08:00
pingqiuandClaude Opus 5.5 aa512ab6d4 blockvolume, volume: red tests, an underivable cgroup limit starts on the default
- A holder whose cgroup v2 limit cannot be derived (its membership is
  outside the cgroup2 mount of its mount namespace, or memory.max is
  unreadable), with neither --memory-limit-mib nor GOMEMLIMIT, must start
  on the 256 MiB default and record why (fails: exit 2 on the derivation
  error). An explicit but invalid flag still refuses.
- Applying that limit must log exactly one WARN naming the reason and the
  two ways to choose a limit, and status must report the reason; a derived
  limit logs nothing (fails: no WARN, status empty).
- Seams: flags.memoryLimitFallback, applyMemoryLimit (now called after
  logging is configured), ProcessMemoryStatus.SoftLimitFallback,
  volume.SetSoftLimitFallback / SoftLimitFallback.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:41:31 -08:00
Ping Qiu 45bee0b7c1 Merge branch 'main' into fix/newer-version-exit 2026-12-01 15:29:51 -08:00
pingqiuandClaude Opus 5.5 e7380482a8 blockvolume: real-systemd red for the newer-format exits
Under the shipped unit's restart policy, a holder that meets a local store
or a HEAD written by a newer format exits 78 with its reason and is not
started again; the store's bytes and HEAD stay as they were; the control,
a process of the same policy exiting 1, is restarted. Prebuilt binaries
of the same tree can stand in for the build on a host without Go.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:17:57 -08:00
pingqiuandClaude Opus 5.5 55562d718e blockvolume: a master's final exit wins over a newer HEAD version
The newer-HEAD-version exit (78 head_newer_version) is chosen before the
master's final reasons, so a startup that also met a final refusal keeps
its exit: moved and deleted stay 78 with their reason, revoked stays 79.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 14:55:02 -08:00
pingqiuandClaude Opus 5.5 b0433c4bbf blockvolume: a newer HEAD or store format exits 78, not a restart loop
A startup that ends on a HEAD written by a newer version exits 78
head_newer_version instead of the restartable 75 (a restart reads the same
HEAD again), and a fatal open of a store written by a newer format exits 78
store_format_newer instead of 1. The provider latches the newer-version
refusal per recovery, beside the identity refusal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 14:55:02 -08:00
pingqiuandClaude Opus 5.5 49158029e7 hostlimit, storage, durable: a long cut yields its slot to a waiting cut
- hostlimit: Config.YieldAfter (S, default 5 min). ShouldYield answers yes
  only for a Normal hold at least S old while another cut on the host holds
  a live ticket this process has not judged stalled (dead tickets are
  reaped on the way); the probe runs only once the hold is old enough and
  takes no limiter lock.
- storage: a cut attempt asks at each staging batch boundary and ends with
  ErrCutYielded, keeping what it staged; CutsYielded counts it, never as a
  failed cut.
- durable: a yielded attempt is retried at the next poll with no backoff,
  on a ticket at the back (it was admitted), counted in status (CutYields)
  and not logged as a failure.
- blockvolume: --host-limit-yield-after. Invariants: INV-HOST-CUT-YIELD-001;
  M7 states the rule. v1.1 notes carry it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 14:44:29 -08:00
pingqiuandClaude Opus 5.5 5a57e8564d hostlimit, storage: chunk fetches are capped per host
- hostlimit: Config.FetchSlots (default 64, files fetch-0..N-1 in the pool).
  HoldFetch takes a free slot without waiting, from the key's hash slot;
  with every slot held it blocks on its hash slot (the kernel queues the
  waiters) and tries the other slots every 20 ms, using whichever lock comes
  first and releasing the other; its context bounds the wait, and a lock got
  after that is released at once. lockBlocking on Unix and Windows.
- storage: BudgetFetch; fillOnce holds one slot across its remote read only
  (a read miss and a hydrate-all fill alike); a context error on the wait is
  the hydration path's pending, as before.
- blockvolume: --host-limit-fetch-slots. Invariants: INV-HOST-FETCH-CAP-001;
  M7 states it. v1.1 notes carry it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:52:37 -08:00
pingqiuandClaude Opus 5.5 27c679c36f hostlimit: exact, lock-free, monotonic hold expiry; the upgrade cure named
- expire decides and revokes in one step under the limiter's lock, reading
  the last progress at that step: a progress report that completed before it
  is always honoured.
- Progress takes no lock: it reads a lease index (sync.Map, kept with the
  live set) and stores an atomic stamp, so it never waits behind an
  admission's file-system work.
- the window runs on the monotonic clock: a stamp is time.Since of the
  limiter's base, never a wall timestamp.
- the launch refusal of a pool written with other flags names
  configuration.json and the cure (stop every process, remove it, start);
  the v1.1 notes carry the hold change and the upgrade step; the upload
  rate flag says the window must exceed one chunk's send time at it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 10:00:50 -08:00
pingqiuandClaude Opus 5.5 4f7e211adc hostlimit, storage: a hold is a no-progress window renewed by its work
- hostlimit: Config.MaxHold (a fixed 5-minute hold limit) becomes
  NoProgress (default 60 s). Progress(id) records the work's progress, with
  no OS call; the hold's one timer, when it fires, arms again for the rest
  of the window if the work progressed, and revokes otherwise. A hold whose
  work keeps progressing is never revoked; a stalled one is revoked within
  the window.
- blockvolume: --host-limit-no-progress; --host-limit-max-hold stays as a
  deprecated alias of it.
- storage: BudgetProgress, the optional Budget that renews a hold; a cut
  attempt reports one unit of work per chunk compared, staged or uploaded.
  A hydrate-all holds one permit per chunk fill, so its hold is one fetch.
- invariants: INV-HOST-HOLD-NO-PROGRESS-001; M7 states the rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 09:45:24 -08:00
pingqiuandClaude Opus 5.5 24e5b821e3 sw-block: the delete's whole stderr is best effort; a stuck stderr never holds it
- diagWriter is now the volume-delete command's stderr: Write never blocks
  (queued in order to one writer goroutine, dropped when the queue is full),
  so the sweeps, the error line written before stdout, the answer on stdout
  and the exit never wait on stderr. close runs after the answer, waits at
  most 200 ms for queued lines, then abandons a stuck writer: nothing more
  is written. All of the command's stderr goes through it, so its writes
  never overlap.
- deleteVolumeWithProgress writes to the stderr it is given (it must not
  block) and no longer owns a writer.
- harness: a server whose launch failed reports 'not started', not running.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 08:29:31 -08:00
pingqiuandClaude Opus 5.5 f6739953c4 sw-block, test: the delete owns its stderr; a failing start is reported once
- diagWriter.close joins its writer goroutine: nothing the delete queued is
  written beside the caller's later writes, so a stderr need not be safe for
  concurrent use. The queue holds 4 lines, so after the answer is decided
  close waits for at most 4 writes; sweeps and the answer never wait.
- registerWeedReport is called after each weed server's own stop cleanup,
  so the latest one runs before every stop: a test that fails while its
  cluster is still starting gets the report too; once per cluster, none for
  a discarded start attempt (its failure message carried one).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 08:19:12 -08:00
pingqiuandClaude Opus 5.5 76412ba143 test: red tests, the delete owns its stderr; a failed start is reported once
- TestVolumeDeleteAnswerDoesNotWaitOnASlowStderr now uses a stderr that is
  not safe for concurrent use and flags overlapping writes, with 1 s per
  progress line: the answer and exit must be a fast stderr's, the last store
  call must come within the bound, and no two writes may overlap. Fails here:
  after its 200 ms drain the writer goroutine still writes beside the
  caller's final line.
- TestWeedReportCoversAFailureDuringTheStart: a test failing while its
  cluster is still starting gets one report with every server still
  running. Fails here (seam registerWeedReport).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 08:16:01 -08:00
pingqiuandClaude Opus 5.5 b91bffb691 sw-block, test: delete diagnostics are best effort; a failed start is reported
- volume-delete: every progress line goes through a diagnostic writer whose
  one goroutine owns the stderr writes; a line that finds its queue full
  is dropped and printf never blocks, so a slow stderr delays neither a
  sweep, the retry window nor the answer. Once the answer is decided the
  command waits at most 200 ms for queued lines.
- process-test harness: a failed weed start (a server never listened, or
  every attempt failed) is reported with each server's state and the
  master's and the volume server's last lines, taken before the servers
  are stopped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 08:08:09 -08:00
pingqiuandClaude Opus 5.5 7ae15f06a7 test: red tests, diagnostics never gate the delete; a failed start is reported
- TestVolumeDeleteAnswerDoesNotWaitOnASlowStderr: a stderr that takes 3 s
  for each of the delete's progress lines must change neither the answer nor
  the exit status, and the answer must come within the bound plus a short
  drain. Fails here: the answer waited 15 s on stderr (bound 400 ms).
- TestWeedStartFailureCarriesTheReport: a failed weed start attempt's
  message carries each server's state and the master's and the volume
  server's last lines. Fails here (seam weedStartFailure).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 08:01:25 -08:00
pingqiuandClaude Opus 5.5 f675644674 test, sw-block: a stalled delete and a dead test store are named
- sw-block ops chunk volume-delete: while a sweep makes no progress, stderr
  says so every quarter of --timeout (at most every 5 s), with how long
  nothing has moved, the object it waits on and the count so far; the bound
  and the answer are unchanged.
- process-test harness: each weed server keeps its own exit status per start;
  a failed test logs, as its own message, each server as running or exited
  with its status and the master's and the volume server's last lines (the
  volume server last, within what the CI summary keeps); the delete
  helper's kill and deadline failures name the store's state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 07:24:31 -08:00
pingqiuandClaude Opus 5.5 160383ee03 test: red tests, a stalled delete and a dead test store are named
- TestVolumeDeleteReportsAStalledStoreWhileItWaits (sw-block): a store that
  holds every object delete until its deadline; while the sweep waits, stderr
  must say how long nothing has moved and the object it waits on. Fails
  here: stderr has only the end-of-sweep count.
- TestWeedFailureReportNamesEachServerAndItsTail (blockvolume harness): a
  failed test's evidence names each weed server as running or exited with
  its status, then the master's and the volume server's last lines, inside
  the 20 continuation lines the CI summary keeps. Fails here (seams
  weedState and weedFailureReport return nothing); the cluster records each
  server's exit status for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 07:22:13 -08:00
Ping Qiu 78994e9ba8 Merge pull request #865 from seaweedfs/test/rejoin-diagnostics
test: the rejoin failure reports both replicas' log tails
2026-11-30 23:57:36 -08:00
Ping Qiu 13d0627043 Merge pull request #864 from seaweedfs/fix/holder-cgroup-memory
blockvolume: derive the default Go soft memory limit from its cgroup
2026-11-30 22:59:12 -08:00
Ping Qiu 406a2375fd Merge pull request #653 from seaweedfs/test/store-down-causal-cut
test: the store goes down inside the cut by construction
2026-11-30 22:43:48 -08:00
pingqiu e5aeb426d7 blockvolume: classify parser sites and refuse unresolved mount roots 2026-11-30 22:37:34 -08:00
pingqiuandClaude Opus 5.5 c974574f8a test: the rejoin failure reports both replicas' log tails
The primary's peer answer alone cannot tell a replica that never caught up
from one that never answered; the failure now carries r2's and r3's logs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 22:14:22 -08:00
pingqiuandClaude Opus 5.5 5a9f2a66c2 test: stillHeld reads the held call's own context
A caller can give up before the front's handler is scheduled to notice,
leaving the left channel open; the check reads the held request's context
first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 22:04:08 -08:00
pingqiuandClaude Opus 5.5 15381ee7eb test: the store-down test proves the held upload was still waiting at the kill
The filer front records when the held call leaves and why (the test's
release, or its caller giving up); the test checks the hold is still
waiting right after the store goes down, else the run is inconclusive.
E1_TEST_DELAY_KILL delays the kill past the upload's timeout as the
negative control. The post-restart HEAD reads carry the wait's absolute
deadline, and the side-file census fails on any error but a file removed
while it is walked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:59:00 -08:00
pingqiu 9f899120e3 blockvolume: resolve cgroup mounts and skip discovery for version 2026-11-30 21:52:29 -08:00
pingqiuandClaude Opus 5.5 4426d07ba4 test: the store-down test finds copy-on-write side files under the volume's directory
A store now lives in its volume's own directory (<name>-<id8>) and its side
file is created next to it; the test globbed only the host root, so it
measured 0 and its no-leftover checks looked nowhere. It walks the root.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:44:33 -08:00
pingqiu 60e482f978 blockvolume: derive the default Go memory limit from its cgroup 2026-11-30 21:40:44 -08:00
pingqiuandClaude Opus 5.5 c1fb211129 test: the store-down test waits for a readable HEAD after the restart; verify names the master
The filer front accepts at once while the real filer behind it may still
be starting, so the restart is complete when HEAD reads again. The chunk
verify call names --master, which a bare chunk path now needs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:30:51 -08:00
pingqiuandClaude Opus 5.5 85d0ca7504 test: the store-down guard checks HEAD's committed image, not its generation
A cut's session begin writes HEAD (a new generation) before its first
upload, so a generation change does not mean the cut committed. On M01
(weed 4.53) the guard fired on the session begin in all four subtests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:17:16 -08:00
pingqiuandClaude Opus 5.5 62e092de37 Store-down procedure: the store goes down inside the cut by construction
The test polled for the cut's first filer entry and then checked HEAD had
not moved; on a fast host the cut committed between the two (HEAD gen 4 ->
5, "not mid-cut"). It now runs on a filer front that holds the reply to the
cut's first applied chunk-object create: the store is stopped while that
reply is held, then the reply is released, so the cut cannot commit before
the store is down. E1_TEST_SKIP_BOUNDARY=1 holds nothing and the test then
fails as inconclusive.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:02:13 -08:00
pingqiuandClaude Opus 5.5 68045d9698 durable: remove the smartwal and parallel-walstore engines
- The provider refuses the removed names and, under every selector and
  before any selector comparison, a volume carrying their magic (SWAW;
  SWPW in either header slot), reading the file read-only and never
  modifying it. blockvolume --durable-impl and the launcher refuse the
  names with the same advice; the chart schema allows walstore only.
- core/storage/smartwal, core/storage/parallelwal and
  cmd/sw-block-testutil (whose one command corrupted smartwal records)
  are deleted, with the helm smartwal-corruption scenario and the
  parallel-walstore gate script.
- The replication harness runs on walstore; tests that ran on a removed
  engine only because a stub needed some store move to walstore, and the
  state_convergence label test moves to the in-memory BlockStore.
- sw-block cluster.check drops the removed engines' cases.
- Ledger: INV-OPEN-REMOVED-ENGINE-REFUSED-001 and
  INV-OPEN-REMOVED-ENGINE-NAME-REFUSED-001, an OpenRefused edge in M1, and
  the rows citing the removed tests updated. Docs: block-design 1.3 now
  describes the removal, the smartwal deep-dive and figure are gone, the
  scripts default to walstore, and the v1.1 notes carry the removal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 20:38:54 -08:00
pingqiuandClaude Opus 5.5 565a91b6dc durable: red tests, the removed experimental engines are refused typed
v1.1 removes the experimental engines smartwal and parallel-walstore. These
controls fail on main, where both still open:
- a volume carrying a removed engine's magic (SWAW; SWPW at offset 0, or
  only at 4096 when the first parallel-walstore header is torn) is refused
  with the typed RemovedEngineError under the auto and the walstore
  selector, and the file stays byte-identical;
- the removed names are refused typed by the provider, by blockvolume
  --durable-impl, and by the Kubernetes launcher.
The seam adds the error type and its advice ("created by a removed
experimental engine; copy the data to a walstore volume with v1.0.x
first"); RemovedEngineName refuses nothing yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 20:38:21 -08:00
Ping Qiu e0e6acba8a Merge pull request #855 from seaweedfs/test/fence-rejoin-epoch
test(blockvolume): the survivor-rejoin test asserts the rejoin, not epoch 2
2026-11-30 14:32:59 -08:00
pingqiuandClaude Opus 5.5 3c2a0625ae test(blockvolume): the rejoin waits for one epoch the primary and both peers share
Sampling r1's epoch and then waiting for that exact epoch failed when a
further round moved it in between. waitRejoinConverged polls until r1 is a
healthy primary at some epoch e >= 2 and r2 and r3 are healthy peers at the
same e, read in one pass, and returns e.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 14:01:51 -08:00
pingqiuandClaude Opus 5.5 53f09b7c50 test(blockvolume): the survivor-rejoin test asserts the rejoin, not epoch 2
After its 6 s pause the resumed primary can answer the promotion gate's
probe not ready on a loaded host; the gate then runs one more fencing round
and continues r1 at the next epoch. The test waited for healthy peers at
epoch 2 only and failed (run 46515001535: r2 and r3 healthy at 3). It now
waits for both replicas healthy at r1's current epoch (at least 2), checks
that r1 is still the primary and that no replica was promoted, and reads
blocks A and B back; a further round is logged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 13:50:22 -08:00
pingqiuandClaude Opus 5.5 80e0dc5b5f test(blockvolume): port-claim tests use a holder and a contender subprocess
The parent no longer claims, so its claim map stays empty and -count=2
passes; a hold helper keeps the claim until its stdin closes, a try helper
reports taken or refused, and both run under a local deadline and are
reaped. Held: refused to another process; after the holder exits: taken.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 13:12:39 -08:00
pingqiuandClaude Opus 5.5 d799063744 test(blockvolume): port claims open their lock files read-only; only "held" refuses
A lock file created by one runner user (0644 under umask 022, never removed)
was opened read-write by the next user and refused with EACCES, locking its
port out for good. flock needs no write access: open read-only, create
0444. Only EWOULDBLOCK means another process holds the port; any other
claim error is reported once, with its path, and the port is left to the
listen probe.

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