Repository navigation
feat: add catalog metadata barrier wire contract - #29022
Conversation
XuPeng-SH
left a comment
There was a problem hiding this comment.
Deep review: current head 4d6330986bcaf5f2fa5ed306b553a70217ebc730 has no evidence-backed P0/P1/P2. Approved design revision, additive wire/generated fields, raw/MOH2/MOH3 snapshot compatibility, feature validation, barrier invariants, and atomic recovery were audited; required CI is green.
Merge Queue Status
This pull request spent 1 minute 45 seconds in the queue, with no time running CI. Waiting for any of
All conditions
ReasonPull request #29022 has been dequeued Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.
HintYou should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. Tick the box to put this pull request back in the merge queue (same as
|
## What type of PR is this? - [x] API-change - [ ] BUG - [x] Improvement - [ ] Documentation - [x] Feature - [x] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#29003 ## What this PR does / why we need it: Implements the catalog metadata barrier wire and snapshot contract approved in matrixorigin#29008. - Adds additive CN/LogStore capability fields, heartbeat barrier snapshots, durable barrier state, and the MOH3 snapshot envelope without changing existing field meanings. - Preserves the current raw/MOH2 production writer behavior while the barrier remains disabled; this PR does not advertise the new HAKeeper barrier protocol or activate metadata admission. - Adds strict phase/generation validation and bidirectional required-feature validation. - Decodes into temporary state and publishes only after complete validation, preserving reused-state atomicity on corrupt/truncated input. - Adds byte-level old/new heartbeat compatibility, raw/MOH2/MOH3, format-selection, invalid-state, feature matrix, corruption, truncation, and reused-state tests. - Records the exact design approval in the tracked design document. Validation: - `make pb` and a second `make generate-pb` reproducibility check - HAKeeper and protobuf package tests, normal and race - focused race tests repeated 10 times - full LogService tests - CN/LogService consumer compile tests - `go vet` for HAKeeper and protobuf owners - new snapshot codec statement coverage: 85.7%–100%; owning package total 84.4% - raw/MOH2/MOH3 fresh/reused allocation benchmark and alloc-space profile No runtime activation, recovery worker, SQL admission, planner, DDL, or restore behavior is included; those remain in matrixorigin#29004–matrixorigin#29007. --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
## What type of PR is this? - [x] API-change - [ ] BUG - [x] Improvement - [ ] Documentation - [x] Feature - [x] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#29003 ## What this PR does / why we need it: Implements the catalog metadata barrier wire and snapshot contract approved in matrixorigin#29008. - Adds additive CN/LogStore capability fields, heartbeat barrier snapshots, durable barrier state, and the MOH3 snapshot envelope without changing existing field meanings. - Preserves the current raw/MOH2 production writer behavior while the barrier remains disabled; this PR does not advertise the new HAKeeper barrier protocol or activate metadata admission. - Adds strict phase/generation validation and bidirectional required-feature validation. - Decodes into temporary state and publishes only after complete validation, preserving reused-state atomicity on corrupt/truncated input. - Adds byte-level old/new heartbeat compatibility, raw/MOH2/MOH3, format-selection, invalid-state, feature matrix, corruption, truncation, and reused-state tests. - Records the exact design approval in the tracked design document. Validation: - `make pb` and a second `make generate-pb` reproducibility check - HAKeeper and protobuf package tests, normal and race - focused race tests repeated 10 times - full LogService tests - CN/LogService consumer compile tests - `go vet` for HAKeeper and protobuf owners - new snapshot codec statement coverage: 85.7%–100%; owning package total 84.4% - raw/MOH2/MOH3 fresh/reused allocation benchmark and alloc-space profile No runtime activation, recovery worker, SQL admission, planner, DDL, or restore behavior is included; those remain in matrixorigin#29004–matrixorigin#29007. --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
What type of PR is this?
Which issue(s) this PR fixes:
issue #29003
What this PR does / why we need it:
Implements the catalog metadata barrier wire and snapshot contract approved in #29008.
Validation:
make pband a secondmake generate-pbreproducibility checkgo vetfor HAKeeper and protobuf ownersNo runtime activation, recovery worker, SQL admission, planner, DDL, or restore behavior is included; those remain in #29004–#29007.