-
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
MaxReplicationLagModule.recalculateRate no longer fills the log #14875
MaxReplicationLagModule.recalculateRate no longer fills the log #14875
Conversation
Signed-off-by: Eduardo J. Ortega U <[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
|
Thanks, @ejortegau ! I think that it's fine to remove this, but let's also ask @shlomi-noach. If we do want to keep the optional logging for debugging, we could use the verbose glog API: https://github.com/search?q=repo%3Avitessio%2Fvitess+log.v(&type=code |
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.
Let's remove it.
Re: backporting, I don't think this kind of change falls into the backport guidelines. We can always backport later if needed. |
Thank you! |
…ssio#14875) Signed-off-by: Eduardo J. Ortega U <[email protected]>
…ssio#14875) Signed-off-by: Eduardo J. Ortega U <[email protected]>
* Skip recalculating the rate in MaxReplicationLagModule when it can't be done (vitessio#12620) * Skip recalculating the rate in MaxReplicationLagModule when it can't be done This defends against lag records with nil stats which can lead to segfaults. See vitessio#12619 Signed-off-by: Eduardo J. Ortega U <[email protected]> * Address PR comments. Signed-off-by: Eduardo J. Ortega U <[email protected]> * Make linter happy Signed-off-by: Eduardo J. Ortega U <[email protected]> --------- Signed-off-by: Eduardo J. Ortega U <[email protected]> * Throttled transactions return MySQL error code 1041 ER_OUT_OF_RESOURCES (vitessio#12949) This error code seems better suited to represent the fact that transactions are being throttled by the server due to some form of resource contention than the current code 1203 ER_TOO_MANY_USER_CONNECTIONS. Signed-off-by: Eduardo J. Ortega U <[email protected]> * MaxReplicationLagModule.recalculateRate no longer fills the log (vitessio#14875) Signed-off-by: Eduardo J. Ortega U <[email protected]> --------- Signed-off-by: Eduardo J. Ortega U <[email protected]> Co-authored-by: Eduardo J. Ortega U <[email protected]>
Description
This PR removes logging from
MaxReplicationLagModule
to reduce the noise.Ideally, this would still be logged in debug mode, but as it turns out, the vitess log does not have a debug mode ¯\_(ツ)_/¯
No need to backport this, though it's so easy that might as well.
Related Issue(s)
Checklist
Deployment Notes
N/A.