Skip to content

fix(protocol): order sorted membership before abort metadata - #27638

Merged
XuPeng-SH merged 2 commits into
matrixorigin:mainfrom
jiangxinmeng1:fix/protocol-version-order-abort-after-sorted64
Aug 26, 2026
Merged

XuPeng-SH merged 2 commits into
matrixorigin:mainfrom
jiangxinmeng1:fix/protocol-version-order-abort-after-sorted64

Conversation

@jiangxinmeng1

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 #26720

What this PR does / why we need it:

Reorders the cumulative protocol capabilities so the bounded Sorted64 membership-filter wire format is introduced
before persisted appendable-object abort metadata.

  • Assigns MORPCVersion10 to the Sorted64 membership-filter format.

  • Assigns MORPCVersion11 to persisted appendable-object abort metadata.

  • Enables Sorted64 membership filters at protocol version 10.

  • Keeps appendable-object writers on the legacy commitTS layout at version 10 and enables the abort-column layout
    only at version 11.

  • Updates rollout-boundary and persisted-layout tests to match the corrected ordering.

  • Leaves MORPCLatestVersion and all version 12+ capabilities unchanged.

This allows the 4.2 backport to advertise Sorted64 support without also claiming support for the cumulative abort-
column storage contract.

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@aptend aptend 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.

The cumulative capability ordering is now consistent: version 10 enables bounded Sorted64 membership filters while appendable-object writers retain the legacy commitTS layout until version 11. I checked the complete diff and both rollout boundaries, including persisted abort readers/writers; affected unit suites and vet pass.

@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 completed at exact head 3839c25d9bb7ddfce6563f9559639603c07b253a against merge base 7792fcaa09cfd24abd6d1070ec7213c229b6e02b.

I traced both cumulative capability closures. Version 10 now admits the bounded Sorted64 producer/consumer format, while the appendable-object writer keeps the legacy commitTS-only layout and encodes rollback holes as uncommitted rows. Version 11 admits the abort column; readers already accept both legacy and abort-column layouts. Versions 12+ therefore retain both capabilities unchanged.

This ordering is also consistent with the current 4.2-dev baseline at version 9: a v10 backport can negotiate Sorted64 without causing a main writer to persist abort metadata until every reader reaches v11. The updated threshold tests exercise v9/v10 Sorted64 admission and v10/v11 persisted-layout boundaries, and exact-head CI plus affected unit/vet evidence are green. No new allocation, retry, wait, or lifecycle path is introduced. I found no remaining correctness, mixed-version, persistence, performance, or unhappy-path blocker.

@mergify mergify Bot added the queued label Aug 26, 2026
@mergify

mergify Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-08-26 12:42 UTC · Rule: main · triggered by rule Automatic queue on approval for main
  • 🟠 Checks running · in-place
  • 🚫 Left the queue — 2026-08-26 13:02 UTC · at 8f8b79874817f075cfba29c44fb29b38f439cb0b

This pull request spent 20 minutes 48 seconds in the queue, with no time running CI.

Waiting for
  • any of: [🛡 GitHub branch protection]
    • check-neutral = Matrixone CI / UT Test on Ubuntu/x86
    • check-skipped = Matrixone CI / UT Test on Ubuntu/x86
    • check-success = Matrixone CI / UT Test on Ubuntu/x86
  • any of: [🛡 GitHub branch protection]
    • check-neutral = Matrixone CI / SCA Test on Linux/arm64
    • check-skipped = Matrixone CI / SCA Test on Linux/arm64
    • check-success = Matrixone CI / SCA Test on Linux/arm64
  • any of: [🛡 GitHub branch protection]
    • check-neutral = Matrixone Compose CI / multi cn e2e bvt test docker compose(PROXY)
    • check-skipped = Matrixone Compose CI / multi cn e2e bvt test docker compose(PROXY)
    • check-success = Matrixone Compose CI / multi cn e2e bvt test docker compose(PROXY)
  • any of: [🛡 GitHub branch protection]
    • check-neutral = Matrixone Utils CI / Coverage
    • check-skipped = Matrixone Utils CI / Coverage
    • check-success = Matrixone Utils CI / Coverage
  • any of: [🛡 GitHub branch protection]
    • check-neutral = Matrixone UT Coverage / UT Coverage on Ubuntu/x86
    • check-skipped = Matrixone UT Coverage / UT Coverage on Ubuntu/x86
    • check-success = Matrixone UT Coverage / UT Coverage on Ubuntu/x86
  • any of: [🛡 GitHub branch protection]
    • check-neutral = Matrixone Standlone CI / multi CN e2e BVT Test on Linux/x64(COMPOSE, PESSIMISTIC)
    • check-skipped = Matrixone Standlone CI / multi CN e2e BVT Test on Linux/x64(COMPOSE, PESSIMISTIC)
    • check-success = Matrixone Standlone CI / multi CN e2e BVT Test on Linux/x64(COMPOSE, PESSIMISTIC)
All conditions
  • any of [🛡 GitHub branch protection]:
    • check-neutral = Matrixone CI / UT Test on Ubuntu/x86
    • check-skipped = Matrixone CI / UT Test on Ubuntu/x86
    • check-success = Matrixone CI / UT Test on Ubuntu/x86
  • any of [🛡 GitHub branch protection]:
    • check-neutral = Matrixone CI / SCA Test on Linux/arm64
    • check-skipped = Matrixone CI / SCA Test on Linux/arm64
    • check-success = Matrixone CI / SCA Test on Linux/arm64
  • any of [🛡 GitHub branch protection]:
    • check-neutral = Matrixone Compose CI / multi cn e2e bvt test docker compose(PROXY)
    • check-skipped = Matrixone Compose CI / multi cn e2e bvt test docker compose(PROXY)
    • check-success = Matrixone Compose CI / multi cn e2e bvt test docker compose(PROXY)
  • any of [🛡 GitHub branch protection]:
    • check-neutral = Matrixone Utils CI / Coverage
    • check-skipped = Matrixone Utils CI / Coverage
    • check-success = Matrixone Utils CI / Coverage
  • any of [🛡 GitHub branch protection]:
    • check-neutral = Matrixone UT Coverage / UT Coverage on Ubuntu/x86
    • check-skipped = Matrixone UT Coverage / UT Coverage on Ubuntu/x86
    • check-success = Matrixone UT Coverage / UT Coverage on Ubuntu/x86
  • any of [🛡 GitHub branch protection]:
    • check-neutral = Matrixone Standlone CI / multi CN e2e BVT Test on Linux/x64(COMPOSE, PESSIMISTIC)
    • check-skipped = Matrixone Standlone CI / multi CN e2e BVT Test on Linux/x64(COMPOSE, PESSIMISTIC)
    • check-success = Matrixone Standlone CI / multi CN e2e BVT Test on Linux/x64(COMPOSE, PESSIMISTIC)
  • #review-threads-unresolved = 0 [🛡 GitHub branch protection]
  • github-review-approved [🛡 GitHub branch protection]

Reason

Pull request #27638 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 8b1bfea into matrixorigin:main Aug 26, 2026
17 of 19 checks passed
@mergify mergify Bot added dequeued and removed queued labels Aug 26, 2026
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
…rigin#27638)

## What type of PR is this?

- [ ] API-change
- [x] BUG
- [ ] Improvement
- [ ] Documentation
- [ ] Feature
- [ ] Test and CI
- [ ] Code Refactoring

## Which issue(s) this PR fixes:

issue matrixorigin#26720

## What this PR does / why we need it:

Reorders the cumulative protocol capabilities so the bounded Sorted64
membership-filter wire format is introduced
  before persisted appendable-object abort metadata.

  - Assigns MORPCVersion10 to the Sorted64 membership-filter format.
- Assigns MORPCVersion11 to persisted appendable-object abort metadata.
  - Enables Sorted64 membership filters at protocol version 10.
- Keeps appendable-object writers on the legacy commitTS layout at
version 10 and enables the abort-column layout
    only at version 11.

- Updates rollout-boundary and persisted-layout tests to match the
corrected ordering.
- Leaves MORPCLatestVersion and all version 12+ capabilities unchanged.

This allows the 4.2 backport to advertise Sorted64 support without also
claiming support for the cumulative abort-
  column storage contract.

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
…rigin#27638)

## What type of PR is this?

- [ ] API-change
- [x] BUG
- [ ] Improvement
- [ ] Documentation
- [ ] Feature
- [ ] Test and CI
- [ ] Code Refactoring

## Which issue(s) this PR fixes:

issue matrixorigin#26720

## What this PR does / why we need it:

Reorders the cumulative protocol capabilities so the bounded Sorted64
membership-filter wire format is introduced
  before persisted appendable-object abort metadata.

  - Assigns MORPCVersion10 to the Sorted64 membership-filter format.
- Assigns MORPCVersion11 to persisted appendable-object abort metadata.
  - Enables Sorted64 membership filters at protocol version 10.
- Keeps appendable-object writers on the legacy commitTS layout at
version 10 and enables the abort-column layout
    only at version 11.

- Updates rollout-boundary and persisted-layout tests to match the
corrected ordering.
- Leaves MORPCLatestVersion and all version 12+ capabilities unchanged.

This allows the 4.2 backport to advertise Sorted64 support without also
claiming support for the cumulative abort-
  column storage contract.

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
…rigin#27638)

## What type of PR is this?

- [ ] API-change
- [x] BUG
- [ ] Improvement
- [ ] Documentation
- [ ] Feature
- [ ] Test and CI
- [ ] Code Refactoring

## Which issue(s) this PR fixes:

issue matrixorigin#26720

## What this PR does / why we need it:

Reorders the cumulative protocol capabilities so the bounded Sorted64
membership-filter wire format is introduced
  before persisted appendable-object abort metadata.

  - Assigns MORPCVersion10 to the Sorted64 membership-filter format.
- Assigns MORPCVersion11 to persisted appendable-object abort metadata.
  - Enables Sorted64 membership filters at protocol version 10.
- Keeps appendable-object writers on the legacy commitTS layout at
version 10 and enables the abort-column layout
    only at version 11.

- Updates rollout-boundary and persisted-layout tests to match the
corrected ordering.
- Leaves MORPCLatestVersion and all version 12+ capabilities unchanged.

This allows the 4.2 backport to advertise Sorted64 support without also
claiming support for the cumulative abort-
  column storage contract.

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

Labels

kind/bug Something isn't working size/S Denotes a PR that changes [10,99] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants