Commit Graph
3355 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 61068fc9bf transport: the epoch table drops rows above the recovered next LSN at load, and keeps at most 512 rows
A primary that adopted an epoch over an unsynced tail, lost the tail in a
crash and adopted the epoch again kept the row's higher first LSN: its new
writes below it were attributed to the previous epoch, so an old primary's
unacknowledged tail in that range reconciled as shared. The ingress now
trims rows above the store's next LSN after recovery, and the next note
appends the row at its real first LSN. Every write keeps the newest 512
rows, so the record always fits the read bound; the rebuild-done list is
bounded the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 22:39:50 -08:00
pingqiuandClaude Opus 5.5 0b9c955a3c docs: INV-REPL-DIVERGENT-TAIL-001 by (epoch, LSN) reconciliation; INV-REPL-EPOCH-TABLE-001; M3 guard row
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 22:26:48 -08:00
pingqiuandClaude Opus 5.5 a4c613b9d4 test: the epoch table has exactly three writers; a planted fourth is found
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 22:26:48 -08:00
pingqiuandClaude Opus 5.5 ab7eb73c31 transport: the rebuild-done frame carries the primary's epoch rows; the replica takes them, cut at its rebuilt end, before the ack
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 22:26:48 -08:00
pingqiuandClaude Opus 5.5 a9b4678741 replication: a recovery verdict heals a peer only through an (epoch, LSN) reconciliation in this session
The engine's healthy verdict (a probe saw R >= H) and a completed recovery
session set the peer Healthy on length. Both now run a barrier and compare
the peer's (last data epoch, end) with the primary's epoch table: in sync
-> Healthy; diverged -> NeedsRebuild; behind or unanswered -> Degraded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 22:26:48 -08:00
pingqiuandClaude Opus 5.5 9a8f450c72 blockvolume: the primary's epoch row starts at the store's next LSN (no sync during role adoption)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 22:26:48 -08:00
pingqiuandClaude Opus 5.5 dc3d727c46 blockvolume: the primary's epoch row is noted after the fence drained inbound applies, before the role call returns
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 22:26:48 -08:00
pingqiuandClaude Opus 5.5 e628a42896 replication: the promotion seed reconciles a survivor by (last data epoch, end) against the primary's epoch table
The ingress owns the volume's epoch table: the listener notes shipped
entries, the primary's row (epoch, durable end + 1) is made durable before
a primary role is adopted, and the replication volume reads it at the seed
barrier. A survivor whose entries are not the primary's (an equal length at
another epoch, a tail above the frontier, data without a table) needs a
rebuild and is not counted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 22:26:48 -08:00
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