-
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: Improve replication plan builder and event application errors #16596
Conversation
Signed-off-by: Matt Lord <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16596 +/- ##
==========================================
- Coverage 68.85% 68.83% -0.03%
==========================================
Files 1557 1557
Lines 199891 199949 +58
==========================================
- Hits 137644 137627 -17
- Misses 62247 62322 +75 ☔ View full report in Codecov by Sentry. |
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
|
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]>
7b9a1ab
to
07b7e3a
Compare
log.Errorf("Error applying event%s%s: %s", tableLogMsg, gtidLogMsg, err.Error()) | ||
err = vterrors.Wrapf(err, "error applying event%s%s", tableLogMsg, gtidLogMsg) |
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.
I am unsure, but shouldn't there be spaces between "event" and the two "%s"?
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.
No, as those are optional portions — each starting with a space. If we had a hardcoded space after "event" then in some cases we'd have trailing whitespace.
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.
Okay makes sense!
Description
This is a quick bit of internal cleanup that improves the replication plan builder's error messages so that they contain the table name. This is pretty important when a workflow is operating on thousands of tables. This is a sibling PR to: #16588
It should have been changed in that PR as well, but here we are... 🙂
I also took this opportunity to make two improvements to the event application errors in
vplayer
, for which replication plan builder errors would be one cause:To demonstrate:
Related Issue(s)
Checklist