The hosted queue held every same-repo pull request's Test job for more than
an hour today, which blocked gate fixes and reviewed work alike. Same-repo
pull requests now run Test on the tp04-seaweed-block label, as main pushes
and train branches already do. Pull requests from forks keep the hosted
runner, so no fork code runs on our machines.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
completeChunkRecord takes P from the store's synced position, not the
assigned one, and refuses while a write is assigned but not synced: the
completion runs at open, after recovery and before guest I/O.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
completeChunkRecord fences, reads the store's durable position after the
fence, and writes the header (G = that position) only when every page is
present, passes its check and is valid through exactly that position. The
loader refuses positions ahead of the recovered store: an unfinished record
must equal it, a complete record's G may not pass it, a page ahead of it is
damaged. Pages carry the segment's candidate count, the segment name its
published marks refer to, and the kernel table version (chunk-kernel/2).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Three reds on the production store: a header written over pages that miss
an old writer's acknowledged write after a half fence; an unfinished record
whose pages are ahead of the recovered store; a complete record whose header
position is ahead of it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An unfinished record is used only when every page is valid through the
store's last durable position after recovery; a page behind it missed
writes, for example ones an old version acknowledged between the pages and
the fence, and the upgrade builds the record again from the presence.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The record pages, their header, and a reader. The red: pages are written,
the fence is left half done, a writer that does not keep the pages
acknowledges a write, and the new version opens again with the store still
marked; the reader takes the pages that miss that write.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Controls: the changes mutated after the check (in the map, or through a
reference the caller holds), a full check then a commit by change and the
reverse, a commit after the session was aborted, and a commit by change
with no check first each do their own preparation and lookups and refuse
an object no session of theirs wrote; HEAD is unchanged. Positive
controls: an unchecked commit by change of prepared objects commits, and
a new check after an abort adopts the upload. A reuse check that ignores
the changes and mode fails every refusal case. The capability test also
checks that the bound wrapper forwards CASHeadDelta with its binding.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CASHead's body moved into casHead, shared with CASHeadDelta, and
checkCommit serves CheckCommit and CheckCommitDelta: the HEAD-reader,
ObjectsChecked-writer, ownGen and session-field site guards name the new
sites (same behaviour, one more caller). The durable test wrappers that
forward CheckCommit forward CheckCommitDelta too, and the capability test
checks that the bound wrapper forwards the check by change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chunkRemote gains CASHeadDelta and chunkCommitChecker CheckCommitDelta:
the new HEAD's identity and the changed chunks (nil: zeros). LayoutRemote
reads HEAD's current root and the changed shards' previous segments only,
writes their new segments and the root (PrepareRootDelta), and looks up
the new chunks, new segments and root; an unchanged segment is not read,
written or looked up. Compile-time assertions bind LayoutRemote and
MemChunkRemote to the seam; the durable provider's bound wrapper forwards
both with its binding. The engine still calls the full-map CASHead and
CheckCommit until V4-B, which removes them.
The counting test: a one-chunk commit by change on three shards touches
only the changed shard's segments, creating one segment and one root, and
installs the HEAD the full commit of the same change would; the full
commit touches every shard.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The restore-target delete and the snapshot timeout paragraphs keep the
contract that follows from the server's 5-minute bound for one request and
drop the figures measured before the performance round.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 8719e9cace)
A CommitDelta carries HEAD's current root, the previous segment of each
changed shard and the changes. Its plan builds only the changed segments
and the root, and looks up only the new chunks of this volume, the new
segments and the root: an unchanged segment is named by HEAD's current
root, as an unchanged chunk is. The gate: for random images and changes
the delta plan names the full plan's root, base and changed owners, and
its lookups are the full plan's without the unchanged segments. A base
root that does not hash to its name is refused.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds the start-up checks operators meet (workspace lease required, the
conditional HEAD probe, the stricter single-filer check, exit 79), the
snapshot position, schedule, upload and fsync fixes, and the forced-move
JSON. Limits are stated without performance figures measured before the
performance round; the gate line stays until the release gates end.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 5c1c1c75b4)
A commit by change rebuilds only the changed shards: each from its
previous segment and the changed entries, the root from the previous one
with those shards replaced. Pure functions; nothing visits an unchanged
shard. The gate: for random images and change sets the delta root is the
root Build of the whole new manifest names, and the new segments are
exactly Build's segments the previous root does not name. A previous
segment that is not the base's is refused.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The note lists what v1.0.1 adds and fixes, its upgrade, limits and known
limits, checked against this branch. README, troubleshooting, the cleaning
page and the operator guide no longer call those changes unreleased; the
operator guide describes the CLI's own repeat of 5-minute requests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit e883ade9be)
* topology: record when the cluster started
StartedAt rides on MaxVolumeIdCommand; the first non-zero value wins so
replayed or racing entries cannot move it, and the max volume id mirror
file keeps it across raft state loss.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* master: carry StartedAt through raft apply and snapshots
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* master: leader records StartedAt once per cluster
The leader records it right after the topology id. A cluster that predates
the record gets the time its first upgraded leader runs. /dir/status shows it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test: use current StartedAt values
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* topology: never lower the mirrored max volume id
A mirror rewrite for a StartedAt change could carry a bound older than
one already persisted. Keep the highest bound, and read StartedAt under
the file lock.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* topology: let the latest applied StartedAt win
With first-wins, a master that restored an older-version snapshot without
the field could record a second value while the others kept the first.
Following the raft order makes every master converge on the same value.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* filer: read KV keys a few at a time for a store without batch reads
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* abstract_sql: read KV keys with one query
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* redis: read KV keys in one pipeline
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* etcd: read KV keys in read-only transactions
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* mongodb: read KV keys with one query
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* cassandra: read KV keys concurrently
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* hbase: read KV keys concurrently
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* elastic: read KV keys concurrently
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* arangodb: read KV keys with one request
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* foundationdb: read KV keys in one transaction
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* ydb: read KV keys with one query
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* tarantool: send KV reads before waiting for any
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* filer: every filer store reads KV keys in batches
KvBatchGet moves from the optional KvBatchReader onto FilerStore. A listing
now reads the hard link records of its waiting entries together from any
store, a path-specific one included.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* tikv: count only the record reads of a listing in its test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* filer: return every batched key that pads to the same stored row
SQL, MongoDB and YDB pad a short KV key with zero bytes, so "short" and
"short\x00" read the same row. KvBatchGet kept only the last such key.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* filer: read keys in a plain loop when KvGetEach runs one at a time
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The swblock_format_v3_test tags never ran in CI. Five durable tests
install a BASE on a chunk store, which no production path does; they are
skipped by name until their rewrite, so every other tagged test gates.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The organization's shared hosted queue held train PRs 30 to 55 minutes
before their suites started, while the team's runners, which already
run the same suites on every push to main, were idle. Only train/*
branches of this repository select them; every other PR, forks
included, stays on GitHub-hosted machines.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>