VTTablet schema reload: include stats only on periodic reload for all flavors. Default to "base table" query for the "with sizes" query for 5.7 only#17855
Merged
rohit-nayak-ps merged 5 commits intovitessio:mainfrom Feb 25, 2025
Conversation
…schema don't include stats Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Contributor
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17855 +/- ##
==========================================
+ Coverage 67.44% 67.47% +0.02%
==========================================
Files 1592 1593 +1
Lines 258205 258891 +686
==========================================
+ Hits 174151 174681 +530
- Misses 84054 84210 +156 ☔ View full report in Codecov by Sentry. |
dbussink
reviewed
Feb 24, 2025
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
deepthi
approved these changes
Feb 25, 2025
5 tasks
5 tasks
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.
Description
For a specific
MoveTablesworkflow, we are seeing timeouts on reloading the schema on unmanaged tables connected to the multi-tenant Aurora cluster with a massive number of tables.For schema reloads, we are defaulting to using the "with sizes" query instead of just the "base tables" one. The "with sizes" one is significantly slower and is only needed by
Online DDLmigrations which we don't do on the unmanaged keyspaces.This PR changes the VReplication related schema reloads to not include file size stats. We do reload stats for the periodic reload that is done on a timer at interval defined by the
vttabletflag--queryserver-config-schema-reload-time.Vitess now only supports MySQL 5.7 for imports, since 5.7 is EOL. So for the 5.7 flavor, which is the one used for many of the Aurora and RDS imports, we will just default to the "base tables" query instead of the "with sizes" one even if
include_statsis specified to schema reload.Related Issue(s)
Fixes #17856
Checklist
Deployment Notes