-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
Conversation
…schema don't include stats Signed-off-by: Rohit Nayak <[email protected]>
Signed-off-by: Rohit Nayak <[email protected]>
Signed-off-by: Rohit Nayak <[email protected]>
Signed-off-by: Rohit Nayak <[email protected]>
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. |
Signed-off-by: Rohit Nayak <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
For a specific
MoveTables
workflow, 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 DDL
migrations 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
vttablet
flag--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_stats
is specified to schema reload.Related Issue(s)
Fixes #17856
Checklist
Deployment Notes