Skip to content

[4.2] fix: recreate missing character sets table - #27397

Merged
mergify[bot] merged 2 commits into
matrixorigin:4.2-devfrom
aptend:backport/4.2-character-sets-missing-table
Aug 20, 2026
Merged

mergify[bot] merged 2 commits into
matrixorigin:4.2-devfrom
aptend:backport/4.2-character-sets-missing-table

Conversation

@aptend

@aptend aptend commented Aug 20, 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:

Related to #27287.

Backport of #27369 to 4.2-dev.

What this PR does / why we need it:

The v4.0.6 tenant upgrade populates information_schema.CHARACTER_SETS, but a legacy tenant can be missing the table entirely. The population check then fails before the repair can run.

This backport:

  • creates a missing CHARACTER_SETS table from the canonical DDL before population;
  • leaves an existing table unchanged and keeps population idempotent;
  • advances the v4.0.6 VersionOffset through the additional upgrade entry;
  • backports the same-version offset execution rule already present on main, because 4.2-dev would otherwise skip tenants already recorded at v4.0.6.

Validation:

  • make thirdparties;
  • focused missing/existing-table and same-version offset regressions;
  • complete pkg/bootstrap and pkg/bootstrap/versions/v4_0_6 tests;
  • go list, go build, go vet, and git diff --check for both owning packages.

@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 →

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

Reviewed exact 4.2 backport head 96dab54 against merged main fix #27369 and the branch-specific upgrade scheduler. The create-before-populate entry uses the canonical DDL and normalized catalog lookup, leaves existing tables untouched, and advances the v4.0.6 offset. The backported same-version rule is narrowly limited to FromVersion == ToVersion offset upgrades; task ready/state handling still makes retries idempotent and normal version transitions remain skipped at their target. Focused race suites for both owning packages pass. No blocking findings.

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

mergify Bot commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-08-20 10:27 UTC · Rule: release-4.2 · triggered by rule Automatic queue on approval for release-4.2
  • 🚫 Left the queue — 2026-08-20 10:50 UTC · at 96dab54617e3f009b9bdbe52aaf919fa1d1e7385

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

Reason

Pull request #27397 has been dequeued

Queue conditions are not satisfied:

  • approved-reviews-by=XuPeng-SH

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.

Requeued — the merge queue status continues in this comment ↓.

@mergify
mergify Bot requested a review from XuPeng-SH August 20, 2026 10:50
@mergify mergify Bot added the dequeued label Aug 20, 2026
@mergify

mergify Bot commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-08-20 10:51 UTC · Rule: release-4.2 · triggered by rule Automatic queue on approval for release-4.2
  • ✅ Checks passed · in-place
  • ✅ Merged — 2026-08-20 12:04 UTC · at 60f8ac6c456d2d0e06e3218a65244f45202f8601 · squash

This pull request spent 1 hour 13 minutes 13 seconds in the queue, including 53 minutes 13 seconds running CI.

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

@mergify
mergify Bot merged commit 01ae8ec into matrixorigin:4.2-dev Aug 20, 2026
27 of 28 checks passed
@mergify mergify Bot removed the queued label Aug 20, 2026

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/M Denotes a PR that changes [100,499] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants