Skip to content

feat: add catalog metadata barrier wire contract - #29022

Merged
XuPeng-SH merged 6 commits into
matrixorigin:mainfrom
ck89119:issue-29003-wire-main
Sep 17, 2026
Merged

XuPeng-SH merged 6 commits into
matrixorigin:mainfrom
ck89119:issue-29003-wire-main

Conversation

@ck89119

@ck89119 ck89119 commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

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.

  • 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 #29004–#29007.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@mergify mergify Bot added the queued label Sep 17, 2026
@mergify

mergify Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-09-17 00:38 UTC · Rule: main · triggered by rule Automatic queue on approval for main
  • 🟠 Checks running · in-place
  • 🚫 Left the queue — 2026-09-17 00:40 UTC · at 161118d1be770ae604b8ae98b7d353fc6f66e98d

This pull request spent 1 minute 45 seconds in the queue, with no time running CI.

Waiting for any of
  • check-neutral = CI Required
  • check-skipped = CI Required
  • check-success = CI Required
All conditions

Reason

Pull 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.

The author needs to enable "Allow edits from maintainers" on this pull request.

Hint

You 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.
If you do update this pull request, it will automatically be requeued once the queue conditions match again.
If you think this was a flaky issue instead, you can requeue the pull request, without updating it, by posting a @mergifyio queue comment.

Tick the box to put this pull request back in the merge queue (same as @mergifyio queue).

  • Requeue this pull request

@XuPeng-SH
XuPeng-SH merged commit b6d07e6 into matrixorigin:main Sep 17, 2026
18 of 20 checks passed
@mergify mergify Bot added dequeued and removed queued labels Sep 17, 2026
@ck89119
ck89119 deleted the issue-29003-wire-main branch September 17, 2026 03:16
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
## 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>
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
## 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>

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants