-
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
VDiff: Save lastpk value for source and target #17493
base: main
Are you sure you want to change the base?
Conversation
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
|
Signed-off-by: Matt Lord <mattalord@gmail.com>
b4670c0
to
b97ad0e
Compare
Signed-off-by: Matt Lord <mattalord@gmail.com>
bca989b
to
eeb7576
Compare
Signed-off-by: Matt Lord <mattalord@gmail.com>
eeb7576
to
6ef34ad
Compare
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
1877c95
to
f7bd4b8
Compare
Signed-off-by: Matt Lord <mattalord@gmail.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17493 +/- ##
==========================================
+ Coverage 67.69% 67.70% +0.01%
==========================================
Files 1584 1584
Lines 254466 254597 +131
==========================================
+ Hits 172258 172383 +125
- Misses 82208 82214 +6 ☔ View full report in Codecov by Sentry. |
One of the things that made this issue hard to understand is the log message
That is coming from
From this code snippet,
though I understand that for debugging purposes, it might be helpful to log the entire pkColumns slice (as we are doing today) versus its length. |
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
2edb55a
to
030ea5a
Compare
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Description
The
RowStreamer
accepts alastpk
value in order to start streaming from after a given row in the table (it uses the PrimaryKey columns to build theWHERE
andORDER BY
clauses for the resultset that it streams).VDiff passes in a
lastpk
value when resuming due to error or user request — for both the sources and targets of the workflow. When the PrimaryKey definition differs for a table between the source and target, however, this would fail if the lastpk value's fields did not match the table definition. So if the PK definition differed between the source and target the VDiff resume would fail with an error like this:This PR fixes this issue by storing a lastpk value for
both
the source and target, as needed, and passing the respective value to theRowStreamer
on the source and target tablets.Related Issue(s)
Checklist