Commit Graph
3347 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 e4040e8a7b transport: the replica notes each shipped entry's epoch before applying it and reports its last data epoch at the durable end
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 22:26:48 -08:00
pingqiuandClaude Opus 5.5 b8556ab5bf transport: the barrier reply carries the replica's last data epoch (48 bytes; 40 from an older replica = no table)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 22:26:48 -08:00
pingqiuandClaude Opus 5.5 869673d9a8 transport: a durable epoch table (epoch -> first LSN) and its shared-end answer
Leader-epoch reconciliation: an entry's identity is (epoch, LSN). The table
answers, for a replica's last data epoch and end LSN, up to where its
entries are the primary's; an equal length at an older epoch is divergent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 22:26:47 -08:00
pingqiuandClaude Opus 5.5 280cd770af docs: ledger row INV-REPL-DIVERGENT-TAIL-001 and the M3 seed-barrier guard
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 22:26:47 -08:00
pingqiuandClaude Opus 5.5 028351bcdc volume: the per-peer engine gets this primary's frontier at the add as its start position
With the degraded-peer probe loop on, a peer the seed barrier degraded for a
divergent tail would otherwise be probed, classified caught up (R >= H) and
fenced back into healthy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 22:26:47 -08:00
pingqiuandClaude Opus 5.5 bca75dc945 replication: a sync barrier counts only a healthy peer
Write acknowledgements already count only peers that were healthy; the
sync barrier counted any peer whose reported length covered the target,
so a degraded survivor holding a divergent tail satisfied sync-quorum.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 22:26:47 -08:00
pingqiuandClaude Opus 5.5 35a165989f replication: a survivor answering the promotion seed barrier above the frontier is degraded
Above the promoted primary's frontier a survivor holds entries the primary
never had: an unacknowledged tail of the old epoch. The seed barrier
accepted it as caught up on length, kept the peer healthy and counted its
acks; it is now degraded like a peer below the frontier.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 22:26:47 -08:00
pingqiuandClaude Opus 5.5 375dc3a110 engine: a replica holding a divergent tail above the new primary's start is rebuilt
Until a replica has accepted the current epoch it holds only entries of
older epochs, and above the new primary's start position those were never
acknowledged. R above that start pins a rebuild instead of the caught-up
fence-then-healthy path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 22:26:47 -08:00
Ping Qiu b24990200a Merge pull request #575 from seaweedfs/change/layout-detached-commit
change: commit clean stop as a stable detached HEAD
2026-11-24 22:15:49 -08:00
pingqiuandClaude Opus 5.5 c08b12134d Merge main into change/layout-detached-commit
Keep main's claim-id and delete-authority rows and add the detached
rows; the delete row starts from live or detached.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 22:07:24 -08:00
Ping Qiu 03085991ad Merge pull request #548 from seaweedfs/feat/phase0-auth
feat: authenticate blockmaster's control API with mutual TLS and a role file
2026-11-24 21:45:49 -08:00
pingqiu 0307351a16 Merge remote-tracking branch 'origin/main' into feat/phase0-auth
# Conflicts:
#	docs/design/invariants.md
2026-11-24 21:19:54 -08:00
Ping Qiu 543f090ebb Merge pull request #579 from seaweedfs/docs/drop-row-count
docs: the invariant row count is printed by the test, not kept in the file
2026-11-24 21:18:53 -08:00
pingqiu f8fc136803 Merge remote-tracking branch 'origin/main' into docs/drop-row-count
# Conflicts:
#	docs/design/invariants.md
2026-11-24 21:12:23 -08:00
pingqiuandClaude Opus 5.5 ea6fcd5b59 docs: the operator guide's certificate example uses a documentation address
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 21:10:31 -08:00
pingqiuandClaude Opus 5.5 bd646b9985 test: the off-loopback flag cases use a documentation address
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 21:10:09 -08:00
pingqiuandClaude Opus 5.5 267ff9f821 test: the master TLS flag test uses server id node-b
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 21:09:31 -08:00
Ping Qiu 06e07f028f Merge pull request #570 from seaweedfs/feat/oss-snap-start
layout: a holder's start applies the local-root rules
2026-11-24 21:04:04 -08:00
Ping Qiu 1f34a10077 Merge pull request #580 from seaweedfs/ci/revert-576
ci: run the spec trace check on the project's runner again (revert #576)
2026-11-24 21:01:53 -08:00
pingqiuandClaude Opus 5.5 599caf1354 ci: run the spec trace check on the project's runner again (revert #576)
GitHub-hosted jobs for this repository wait in a shared queue: since
04:21Z every spec trace job sat queued on ubuntu-latest with no runner,
so no pull request could pass its checks. The workflow's own comment had
said so (the hosted queue can wait for hours).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 20:55:40 -08:00
pingqiuandClaude Opus 5.5 609b485604 docs: invcheck package comment matches the printed row count
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 20:20:59 -08:00
pingqiuandClaude Opus 5.5 dcc6c19556 docs: the invariant row count is printed by the test, not kept in the file
Every pull request that added a row edited the hand-kept count line, so
each merge to main re-conflicted every open pull request. The check now
prints the count and fails if the file states one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 20:19:30 -08:00
pingqiu cecff27f4e Merge remote-tracking branch 'origin/main' into feat/phase0-auth
# Conflicts:
#	docs/design/invariants.md
2026-11-24 20:16:29 -08:00
Ping Qiu f4dad3a8d6 Merge pull request #569 from seaweedfs/feat/oss-snap-delete
layout: volume delete and the release of a dependent
2026-11-24 19:58:54 -08:00
Ping Qiu 89b3a4b634 Merge pull request #576 from seaweedfs/ci/spec-trace-hosted
ci: run the spec trace check on a GitHub-hosted runner
2026-11-24 19:49:30 -08:00
pingqiu 5e76c50e2d Merge remote-tracking branch 'origin/main' into feat/phase0-auth
# Conflicts:
#	docs/design/invariants.md
2026-11-24 19:47:15 -08:00
Ping Qiu 5625b8dab6 Merge pull request #568 from seaweedfs/feat/oss-snap-identity
layout: volume, holder and dependent identities
2026-11-24 19:46:19 -08:00
pingqiu 4af20f8ac2 Merge remote-tracking branch 'origin/main' into feat/phase0-auth
# Conflicts:
#	docs/design/invariants.md
2026-11-24 19:46:12 -08:00
Ping Qiu 98b0c288a9 Merge pull request #573 from seaweedfs/test/systemd-serve-after-barrier
test: systemd startup gate asserts serve-after-barrier in process
2026-11-24 19:29:13 -08:00
pingqiuandClaude Opus 5.5 b81e0597d2 ci: run the spec trace check on a GitHub-hosted runner
The check runs no PR code and needs no project host, but it queued behind
the self-hosted test jobs; every PR's merge waited on that queue.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 19:23:48 -08:00
Ping Qiu 3113f9420f Merge pull request #567 from seaweedfs/feat/oss-snap-remove
layout: remove pool names no root reaches, inside the lease
2026-11-24 19:22:13 -08:00
Ping Qiu b9ea626c09 Merge pull request #571 from seaweedfs/feat/wal-record-decode
storage: export a read-only decode of one v3 WAL record
2026-11-24 19:21:18 -08:00
pingqiu a81c00be16 Merge branch 'feat/oss-snap-delete' into feat/oss-snap-start 2026-11-24 19:19:24 -08:00
pingqiuandClaude Opus 5.5 a3ff2ce060 docs: M9 names the tombstone create and the dependent release
The M9 introduction names its one HEAD create (the deleted HEAD the
operator's remove-dependent writes for a restore target without HEAD);
the diagram and the transition table add absent -> deleted (tombstone)
and the release of a target from a source's dependents.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 19:19:20 -08:00
pingqiuandClaude Opus 5.5 db2067a2da test: every operator or admin method is strict unless named with its reason
The strict-method guard is inverted: a new operator or admin method added
without Strict fails, and ReportClusterEvent (event log append only) is the
one named exception. The guide says the attempt line survives a blockmaster
crash, not a host crash.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 19:10:30 -08:00
pingqiu b4413b079f Merge branch 'feat/oss-snap-delete' into feat/oss-snap-start 2026-11-24 19:08:48 -08:00
pingqiuandClaude Opus 5.5 74a17f96fb layout: a volume delete holds its no-holder premise with the master
The delete checked once that no block held the volume, then marked HEAD
deleting by a separate read: a grant and claim in between let it delete a
live volume. The delete now first has the master record its delete
reservation (no line is granted for the volume after it), then checks
that no line holds a live lease between the HEAD read and the
conditional update that marks HEAD deleting. After the reservation no
live lease can appear, and a claim landing between the read and the
update fails the update.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 19:08:08 -08:00
pingqiuandClaude Opus 5.5 e502ad4b92 test: the moved-away source's journal shows the refused foreign line and no adoption
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 19:05:39 -08:00
pingqiu a2cd2b4318 Merge branch 'feat/oss-snap-delete' into feat/oss-snap-start
# Conflicts:
#	docs/design/invariants.md
2026-11-24 18:57:09 -08:00
pingqiu dcd7b3c5e5 Merge branch 'feat/oss-snap-identity' into feat/oss-snap-delete
# Conflicts:
#	docs/design/invariants.md
2026-11-24 18:56:51 -08:00
pingqiu d09efa5496 change: make the final snapshot commit a stable detached proof 2026-11-24 18:56:34 -08:00
pingqiuandClaude Opus 5.5 ccba156cc8 Merge the removal's convergence fix; M9 guards name the claim id
From the claim id on, the transition table's holder rule is the epoch,
the server and the claim id.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 18:56:25 -08:00
pingqiuandClaude Opus 5.5 3bb31d2fa8 layout: a later cleaning reclaims a name a dead remover marked
The removal planned only unmarked candidates, so a name marked by a
cleaning that died before its delete stayed in the pool for ever. Every
found candidate is now planned with its whole tag (session and mark) as
read; the conditional mark replaces an abandoned mark, and the dead
remover's late delete, conditional on its own mark, fails. The interrupt
test now requires every orphan gone after the re-run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 18:55:25 -08:00
pingqiuandClaude Opus 5.5 6e43955848 layout: Start validates the local root against the HEAD its claim updates
Start checked the local root against its first read of HEAD, then
claimed through a transition that read HEAD again without the check: a
claim by another lineage, or a published position rising past the local
root, between the two reads was written over. The local-root check now
runs again inside the claim's transition, on the very HEAD the
conditional update replaces.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 18:47:27 -08:00
pingqiu 7ed69b1635 Merge branch 'feat/oss-snap-delete' into feat/oss-snap-start
# Conflicts:
#	core/frontend/chunkstore/head_readers_test.go
#	docs/design/invariants.md
2026-11-24 18:45:58 -08:00
pingqiuandClaude Opus 5.5 0664157645 test: the moved-away source never serves and exits only 75 (no lineage of its own)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 18:45:01 -08:00
pingqiu 1d8f8c6ac7 Merge branch 'feat/oss-snap-identity' into feat/oss-snap-delete 2026-11-24 18:44:33 -08:00
pingqiuandClaude Opus 5.5 b7206486b5 test: the UTF-8 holder case fails for its own reason; M9 names the claim id
The invalid-UTF-8 holder fixture lacked a volume id and a claim id, so it
was refused for those first and a mutant dropping the holder's UTF-8
check survived; every UTF-8 case now carries the other fields and
asserts the UTF-8 refusal itself. The M9 diagram and transition table
name the claim id in Claim (replay on epoch, server and claim id;
another claim id at the same epoch and server refused).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 18:44:31 -08:00
pingqiuandClaude Opus 5.5 2fa488bedb layout: tombstone any restore target without HEAD; nothing removes a HEAD
The operator's remove-dependent now writes the deleted HEAD for any
target without HEAD, not only one without VOLUME too: a restore that
died between its VOLUME and its HEAD would otherwise leave a target
that could be neither released nor deleted, pinning the source's
snapshot for ever. The later HEAD create of such a restore fails on the
tombstone, as before.

A volume delete refuses, before any write, a listed path that is not a
pool, segment or root object, so HEAD (which stays, deleted), VOLUME and
the directory are never removed. A source scan lists every delete and
every directory-naming site in core/ and cmd/ and fails on a new one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 18:42:43 -08:00
pingqiuandClaude Opus 5.5 0666f6ad18 test: the moved-source case stops the new holder first (the simulated hosts share one volume lock directory)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 18:41:39 -08:00