Skip to content

Comments

Fix GC table regex for lower case compatibility#753

Merged
tanjinx merged 2 commits intoslack-19.0from
yqin-fix-table-gc-regex
Nov 22, 2025
Merged

Fix GC table regex for lower case compatibility#753
tanjinx merged 2 commits intoslack-19.0from
yqin-fix-table-gc-regex

Conversation

@yushuqin
Copy link

@yushuqin yushuqin commented Nov 19, 2025

Description

Problem: When MySQL is configured with lower_case_table_names=1, all table names are stored in lowercase. Vitess generates GC table names like vt_HOLD, but MySQL stores them as vt_hold. The old regex only matched uppercase state names, causing TableGC to fail to recognize.

Solution: The fix makes the GC table recognition case-insensitive while maintaining backward compatibility with existing uppercase table names.

Test: Test on poo1 staging tablets, all the old vt_hold* and vt_purge* can be cleaned up successfully.

Related Issue(s)

Checklist

  • "Backport to:" labels have been added if this change should be back-ported to release branches
  • If this change is to be back-ported to previous releases, a justification is included in the PR description
  • Tests were added or are not required
  • Did the new or modified tests pass consistently locally and on CI?
  • Documentation was added or is not required

Deployment Notes

AI Disclosure

@yushuqin yushuqin requested a review from a team as a code owner November 19, 2025 07:47
@github-actions github-actions bot added this to the v19.0.7 milestone Nov 19, 2025
@yushuqin yushuqin requested a review from tanjinx November 19, 2025 18:34
tanjinx
tanjinx previously approved these changes Nov 22, 2025
@tanjinx tanjinx merged commit 5186a15 into slack-19.0 Nov 22, 2025
163 of 167 checks passed
@tanjinx tanjinx deleted the yqin-fix-table-gc-regex branch November 22, 2025 04:31
yushuqin added a commit that referenced this pull request Dec 2, 2025
* Fix GC table regex for lower case compatibility

* gofmt
yushuqin added a commit that referenced this pull request Jan 27, 2026
Signed-off-by: 'Yushu Qin' <yqin@slack-corp.com>
yushuqin added a commit that referenced this pull request Jan 27, 2026
Signed-off-by: 'Yushu Qin' <yqin@slack-corp.com>
@yushuqin yushuqin mentioned this pull request Jan 27, 2026
5 tasks
yushuqin added a commit that referenced this pull request Jan 27, 2026
Signed-off-by: 'Yushu Qin' <yqin@slack-corp.com>
tanjinx added a commit that referenced this pull request Jan 27, 2026
* Fix zero timestamp in vifl (#773)

Co-authored-by: Tanjin Xu <109303790+tanjinx@users.noreply.github.com>

* [`slack-19.0`]: backport: Increase GTID position column size to LONGBLOB for VReplication (vitessio#19119) (#770)

This backport increases the GTID position column size from BLOB to LONGBLOB
in VReplication tables to prevent data truncation for large GTID sets.

Backported from vitessio#19119
Original commit: fc242ff

Changes:
- Update schema_version.sql to use LONGBLOB for pos column
- Update vreplication.sql to use LONGBLOB for pos column
- Update schema tests to reflect new column type

Note: Test file changes from upstream were not included as they depend on
features not present in slack-19.0 branch. Core schema changes are sufficient.

* Fix GC table regex for lower case compatibility (#753)

Signed-off-by: 'Yushu Qin' <yqin@slack-corp.com>

---------

Signed-off-by: 'Yushu Qin' <yqin@slack-corp.com>
Co-authored-by: Tanjin Xu <109303790+tanjinx@users.noreply.github.com>
sbaker617 pushed a commit that referenced this pull request Feb 5, 2026
* Fix zero timestamp in vifl (#773)

Co-authored-by: Tanjin Xu <109303790+tanjinx@users.noreply.github.com>

* [`slack-19.0`]: backport: Increase GTID position column size to LONGBLOB for VReplication (vitessio#19119) (#770)

This backport increases the GTID position column size from BLOB to LONGBLOB
in VReplication tables to prevent data truncation for large GTID sets.

Backported from vitessio#19119
Original commit: fc242ff

Changes:
- Update schema_version.sql to use LONGBLOB for pos column
- Update vreplication.sql to use LONGBLOB for pos column
- Update schema tests to reflect new column type

Note: Test file changes from upstream were not included as they depend on
features not present in slack-19.0 branch. Core schema changes are sufficient.

* Fix GC table regex for lower case compatibility (#753)

Signed-off-by: 'Yushu Qin' <yqin@slack-corp.com>

---------

Signed-off-by: 'Yushu Qin' <yqin@slack-corp.com>
Co-authored-by: Tanjin Xu <109303790+tanjinx@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants