Repository navigation
Fix changelog creation with MyRocks strict collation checks - #1816
Open
ZedingZhang wants to merge 1 commit into
Open
ZedingZhang wants to merge 1 commit into
ZedingZhang wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the changelog collation update.
No open issues 🎉
What changed in this PR
Updates changelog creation to support MyRocks strict collation checks, addressing #1748.
Changes:
- Uses
latin1_binfor the indexedhintcolumn. - Adds a regression test verifying the column’s assigned collation.
| File | Description |
|---|---|
| go/logic/applier.go | Sets the changelog hint column to latin1 with latin1_bin collation. |
| go/logic/applier_test.go | Tests changelog creation and verifies the hint collation. |
Review effort: Balanced (adaptive)
This branch has not been 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.
A Pull Request should be associated with an Issue.
Fixes #1748.
Description
The changelog's unique index on
hintcurrently inheritsascii_general_cifrom the column's character set. MyRocks configurations that require a binary collation for indexed strings can reject the table before migration starts.Use
latin1_binfor the indexedVARCHAR(64). It represents the ASCII hints gh-ost writes and is one of the collations accepted by the server in the issue. The regression test creates the changelog through the applier and checks the collation MySQL assigned to the column.Verified changelog creation and duplicate-hint updates on both MyRocks (strict collation checking enabled, empty exception list) and InnoDB with MariaDB 10.11.11. This version also accepts the original DDL, which produces
ascii_general_ci. The regression assertion failed against the original applier and passed with this change. The Linux build and all six Go packages' short tests passed.script/cibuildreturns with no formatting errors, build errors or unit test errors.