-
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 <mattalord@gmail.com>
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
|
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 <mattalord@gmail.com>
35bf533
to
3253b09
Compare
Signed-off-by: Matt Lord <mattalord@gmail.com>
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 <mattalord@gmail.com>
d706462
to
e3cb05d
Compare
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
52cb3e2
to
f98d261
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>
Signed-off-by: Matt Lord <mattalord@gmail.com>
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 <mattalord@gmail.com> * Update hugo config for new version Signed-off-by: Matt Lord <mattalord@gmail.com> * Rebuild again Signed-off-by: Matt Lord <mattalord@gmail.com> * Manual update Signed-off-by: Matt Lord <mattalord@gmail.com> * Revert "Update hugo config for new version" This reverts commit 9eeaf47. Signed-off-by: Matt Lord <mattalord@gmail.com> --------- Signed-off-by: Matt Lord <mattalord@gmail.com>
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