Repository navigation
Replicated erasure fixtures exercise isolated write leases - #1077
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Nov 20, 2026
zlareb1
force-pushed
the
fix/replicated-erasure-lease-fixture
branch
from
November 20, 2026 22:17
96be03c to
20b9880
Compare
This was referenced Nov 20, 2026
Open
Fenced memory inserts require a lease table in the selected schema. Give each fixture database its own Keeper root while preserving the replicated content checks. Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
zlareb1
force-pushed
the
fix/replicated-erasure-lease-fixture
branch
from
November 20, 2026 22:58
20b9880 to
f6cab47
Compare
zlareb1
added a commit
to rahulsjha/loom
that referenced
this pull request
Nov 20, 2026
The fixture repair is on main. Its standalone regression remains in ClickHouse#1077; the feature diff retains its original tests. Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
zlareb1
added a commit
that referenced
this pull request
Nov 20, 2026
The fixture repair is on main. Its standalone regression remains in #1077; the feature diff retains its original tests. Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
zlareb1
added a commit
that referenced
this pull request
Nov 20, 2026
The fixture repair is on main. Its standalone regression remains in #1077; the feature diff retains its original tests. Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
zlareb1
added a commit
that referenced
this pull request
Nov 20, 2026
The fixture repair is on main. Its standalone regression remains in #1077; the feature diff retains its original tests. Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
zlareb1
added a commit
to rahulsjha/loom
that referenced
this pull request
Nov 20, 2026
The fixture repair is on main. Its standalone regression remains in ClickHouse#1077; the feature diff retains its original tests. Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
This was referenced Nov 20, 2026
This was referenced Nov 20, 2026
zlareb1
added a commit
that referenced
this pull request
Nov 21, 2026
Related: #455, #1076, #1077 ### Changelog category - Improvement ### Changelog entry The Postgres authority stores memory heads and revision payloads without fields at their default values, reducing repeated JSON fields while preserving the rows returned to callers. ### Why Most memory fields hold their defaults. Repeating their names and values in every stored JSON row costs space. Sparse-row readers shipped in v1.2.0 and v1.3.0, so the writer can omit those fields in a later release. ### Scope and risk `commit_versions` builds the stored form before taking transaction locks and uses it for head and revision JSON. Full encoded rows still supply identity, admission, audit metadata, delivery targets and returned rows. Only fields in `FIRST_VERSION_DEFAULTS` may be omitted. Identity, content, provenance, version, hashes, required timestamps, memory type and confidence stay stored. The Cell verifier decodes both stored rows before comparing them. Its value, vector, audit, delivery and failure checks remain. Existing usage and redaction updates may store explicit defaults; readers accept either form. The shared replicated-erasure fixture repairs are already on `main`. ### Compatibility, rollout and rollback - Wire and operator steps: none. - Deploy beside builds that read sparse rows; released v1.2.0 and v1.3.0 contain those readers. - A sparse-capable released build reads existing rows after rollback. Reverting the writer requires no rewrite. - No table, migration, setting, worker or generated-file change is needed. ### Tests - All five hosted workflows pass on the published head: CI, Docker smoke, CodeQL, plugin scanner and docs. The rollup has 54 successful checks and two expected publication skips. This includes Postgres 16/18 authority, all integration shards, isolation, mixed-version, unit coverage and Cell acceptance. - The authority integration checks actual sparse head/revision storage, full/sparse point-read equality, list/search/bulk reads, revisions, cross-session defaults, usage and erasure export. - The verifier regression runs both representations through all original fault cases and assertions. Earlier focused validation produced two sparse failures before the repair and 32 passing cases after it; six related authority cases also passed. - Scoped Ruff lint/format and the public prose check pass. Local composition test attempts were refused before execution by the resource guard and remain unrun; final-head behavior is qualified by hosted CI. ### AI assistance in the code - AI-generated: Codex wrote the sparse writer and verifier regression. Independent source reviews checked the full change, published description, released-reader compatibility and current-main composition. - [x] I can explain every line of this diff and how it interacts with the rest of Loom. ### Checklist - [x] Required hosted format, lint, type, unit, coverage and integration gates pass on the published head. - [x] No generated files or migrations change. - [x] No plugin or frontend behavior changes. - [x] Architecture documentation describes sparse storage and in-place updates. - [x] Public text contains no deployment details. - [x] Commits are signed off. Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #1076
Changelog category
Changelog entry
Not required.
Why
Replicated erasure fixtures need a database-local write lease before fenced memory inserts. Regression tests should catch a missing lease table and a reused KeeperMap root before integration tests run.
Scope and risk
Three unit cases exercise the actual fixture and lease acquisition, refusal when the lease table is missing, and separation from the source schema and other fixture roots. The tests check the fixture already on main, including its KeeperMap path and replicated content tables.
Compatibility, rollout and rollback
No wire, settings, production schema or fixture DDL changes. No operator steps or stored data changes.
Tests
The original regression produced two failures and one passing refusal control before the fixture repair. All three pass against the merged fixture. Scoped Ruff lint and formatting pass. Full exact-head hosted CI remains required.
AI assistance in the code
Checklist