-
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: Improve row diff handling in report #16618
Merged
mattlord
merged 10 commits into
vitessio:main
from
planetscale:vdiff_rowdiff_truncation
Aug 27, 2024
Merged
VDiff: Improve row diff handling in report #16618
mattlord
merged 10 commits into
vitessio:main
from
planetscale:vdiff_rowdiff_truncation
Aug 27, 2024
Conversation
This file contains 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
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
|
vitess-bot
bot
added
NeedsBackportReason
If backport labels have been applied to a PR, a justification is required
NeedsDescriptionUpdate
The description is not clear or comprehensive enough, and needs work
NeedsIssue
A linked issue is missing for this Pull Request
NeedsWebsiteDocsUpdate
What it says
labels
Aug 20, 2024
mattlord
added
Type: Enhancement
Logical improvement (somewhere between a bug and feature)
Component: VReplication
and removed
NeedsDescriptionUpdate
The description is not clear or comprehensive enough, and needs work
NeedsWebsiteDocsUpdate
What it says
NeedsIssue
A linked issue is missing for this Pull Request
NeedsBackportReason
If backport labels have been applied to a PR, a justification is required
labels
Aug 20, 2024
mattlord
force-pushed
the
vdiff_rowdiff_truncation
branch
3 times, most recently
from
August 20, 2024 02:27
75bb05c
to
35bf533
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16618 +/- ##
==========================================
- Coverage 68.98% 68.98% -0.01%
==========================================
Files 1562 1562
Lines 200690 200692 +2
==========================================
- Hits 138449 138443 -6
- Misses 62241 62249 +8 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Matt Lord <[email protected]>
mattlord
force-pushed
the
vdiff_rowdiff_truncation
branch
from
August 20, 2024 13:26
35bf533
to
3253b09
Compare
Signed-off-by: Matt Lord <[email protected]>
mattlord
force-pushed
the
vdiff_rowdiff_truncation
branch
from
August 20, 2024 16:45
bb732ab
to
d706462
Compare
I was seeing occasional panics with: panic: close of closed channel goroutine XXX [running]: vitess.io/vitess/go/vt/binlog/binlogplayer.(*MockDBClient).ExecuteFetch(0xc000282070, {0xc00005d020, 0x24}, 0x1?) Signed-off-by: Matt Lord <[email protected]>
mattlord
force-pushed
the
vdiff_rowdiff_truncation
branch
from
August 20, 2024 17:15
d706462
to
e3cb05d
Compare
Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
mattlord
force-pushed
the
vdiff_rowdiff_truncation
branch
from
August 20, 2024 18:29
52cb3e2
to
f98d261
Compare
mattlord
requested review from
deepthi,
harshit-gangal and
ajm188
as code owners
August 20, 2024 18:30
mattlord
requested review from
notfelineit,
GuptaManan100,
rohit-nayak-ps and
shlomi-noach
as code owners
August 20, 2024 18:30
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]>
rohit-nayak-ps
approved these changes
Aug 25, 2024
frouioui
approved these changes
Aug 27, 2024
mattlord
added a commit
to vitessio/website
that referenced
this pull request
Aug 27, 2024
* Update generated docs Signed-off-by: Matt Lord <[email protected]> * Update hugo config for new version Signed-off-by: Matt Lord <[email protected]> * Rebuild again Signed-off-by: Matt Lord <[email protected]> * Manual update Signed-off-by: Matt Lord <[email protected]> * Revert "Update hugo config for new version" This reverts commit 9eeaf47. Signed-off-by: Matt Lord <[email protected]> --------- Signed-off-by: Matt Lord <[email protected]>
venkatraju
pushed a commit
to slackhq/vitess
that referenced
this pull request
Aug 29, 2024
Signed-off-by: Matt Lord <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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
The sample row diffs in the
vdiff show --verbose --format=json
report — when row differences were found between the source and target — were too often unhelpful. The reasons being:--only-pks
flag), meaning that you could not examine the row manually on the source and target to determine the difference(s)This PR addresses these issues as follows:
vdiff create
flag called--row-diff-column-truncate-at
which allows you to control the truncation behavior (defaults to 128 chars and you can specify a value < 1 to avoid any truncation)create
flag rather than ashow
flag because we build the row diffs as we perform the actual diff of the given table, storing the results as we go along in the sidecar DB's_vt.vdiff_table
table--only-pks
Related Issue(s)
Checklist