Repository navigation
Conversation
This branch was previously deployed
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.
What type of PR is this?
Which issue(s) this PR fixes:
Related to #29396.
The production catalog-table repair is already present in #28851. This PR adds regression coverage without changing production behavior; it does not claim verification against the original retained QA data directory.
What this PR does / why we need it:
An upgrade retry must preserve existing catalog data, roll back incomplete DDL together with upgrade progress, and resume persisted work instead of queuing duplicate steps.
FailNowcannot strand a transaction.Validation
Local CPU validation on macOS/arm64, Go 1.26.4, using the repository CGo wrapper:
pkg/bootstrapandpkg/bootstrap/versions/v4_0_8: full normal package tests passed; v4_0_8 coverage is 100%.pkg/tests/upgrade: full normal and race package tests passed. The new test passed under race in 49.13s.The normal upgrade package took 71.989s versus 27.780s with the new test excluded (about 44.2s additional). The private fixture is necessary because it rewrites upgrade progress and restarts services; one user row and two upgrade steps suffice.
Scope and limitations
This is a synthetic catalog-recovery fixture, not an execution of an old 4.2 binary, a mixed-version rolling upgrade, or the original QA reproduction. Rejection of incompatible unfinished version offsets remains unchanged. No production SQL semantics change, so the real MySQL/restart test supplies the public-path evidence rather than adding a duplicate SQL-only BVT.