-
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
VReplication: handle escaped identifiers in vschema when initializing sequence tables #16169
VReplication: handle escaped identifiers in vschema when initializing sequence tables #16169
Conversation
Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Matt Lord <[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 #16169 +/- ##
==========================================
+ Coverage 68.57% 68.59% +0.01%
==========================================
Files 1544 1544
Lines 197863 197918 +55
==========================================
+ Hits 135688 135757 +69
+ Misses 62175 62161 -14 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Matt Lord <[email protected]>
2901dab
to
b57e3aa
Compare
Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
I had previously extended the unit test timeout and in the interim we had split the unit test race out so it had the old timeout. Signed-off-by: Matt Lord <[email protected]>
@@ -54,7 +54,7 @@ for pkg in $flaky_tests; do | |||
max_attempts=3 | |||
attempt=1 | |||
# Set a timeout because some tests may deadlock when they flake. | |||
until go test -timeout 2m $VT_GO_PARALLEL $pkg -v -race -count=1; do | |||
until go test -timeout 5m $VT_GO_PARALLEL $pkg -v -race -count=1; do |
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.
The timeout was extended for unit tests in https://github.com/vitessio/vitess/pull/15797/files#diff-470746102447655f4af9e1e9c9756444906143d6b70e394d42eff2aa251fa05aR87 but the race one was not (it should have been — I think that change was made in parallel with them getting split).
Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
… sequence tables (#16169) Signed-off-by: Matt Lord <[email protected]>
… sequence tables (#16169) Signed-off-by: Matt Lord <[email protected]>
…en initializing sequence tables (#16169) (#16219) Signed-off-by: Matt Lord <[email protected]> Co-authored-by: vitess-bot[bot] <108069721+vitess-bot[bot]@users.noreply.github.com>
… when initializing sequence tables (#16169) (#16218) Signed-off-by: Matt Lord <[email protected]> Co-authored-by: vitess-bot[bot] <108069721+vitess-bot[bot]@users.noreply.github.com>
Description
This work ensures that VReplication — when initializing sequence tables during a traffic switch — handles any escaped identifiers (by unescaping them) that may be in the vschema while continuing to ensure that they are escaped when using them in SQL queries.
This PR also moves more of the VReplication endtoend tests to
vtctldclient
as we now escape the backing sequence tablecustomer_seq
references in the test vschemas and thevtctlclient
(wrangler) implementation remains unchanged as it's long deprecated and should be removed entirely in v21 or v22.I think that this is worth back porting to the latest GA release (v20), for RC2 if we can.
Related Issue(s)
Checklist