-
Notifications
You must be signed in to change notification settings - Fork 715
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
FB8-50, FB8-51: Add stats to track network errors on the server side. #960
Conversation
6080dc7
to
e9cdcaf
Compare
PR was updated according to comments |
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.
LGTM
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.
@hermanlee has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
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.
@hermanlee has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
sql/sql_connect.cc
Outdated
} | ||
|
||
mysql_mutex_assert_not_owner(&LOCK_status); | ||
mysql_mutex_lock(&LOCK_status); |
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.
Can we make all of the statistics variables atomic, similar to connection_errors_select? Then we don't need to grab the LOCK_status() during connection cleanup for this.
@inikep has updated the pull request. Re-import the pull request |
With updated PR variables were converted to std::atomic, but PR was not tested with Jenkins yet |
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.
@hermanlee has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. ---------- facebook@8d520fd ---------- Add stats to track network errors on the server side. Summary: Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Test Plan: Run newly added unit test Reviewers: ebergen, pengt Originally Reviewed By: pengt ---------- facebook@0e62abd ---------- Group user network errors by error code. Summary: Currently the code, reports network errors across all clients by error code but reports the total network error experienced by each client. It will be beneficial to group network errors per user as well by the error code. Test Plan: Run newly added unit test Reviewers: ebergen, pengt Originally Reviewed By: pengt
@inikep has updated the pull request. Re-import the pull request |
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.
@hermanlee has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
…#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: 8d520fd Reference Patch: 0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: #960 Differential Revision: D14193990 fbshipit-source-id: 48869e5
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
…percona#960) (percona#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook/mysql-5.6@8d520fd Reference Patch: facebook/mysql-5.6@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook/mysql-5.6#960 Differential Revision: D14193990
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
…facebook#960) (facebook#960) Summary: Jira issue: https://jira.percona.com/browse/FB8-50 Jira issue: https://jira.percona.com/browse/FB8-51 Reference Patch: facebook@8d520fd Reference Patch: facebook@0e62abd Notice: Network errors per user for I_S.USER_STATISTICS were dropped. Currently there are no stats to capture the network errors while communicating with the client. These stats will help better understand the server perspective while debugging client side issues. Pull Request resolved: facebook#960 Differential Revision: D14193990
Summary:
Jira issue: https://jira.percona.com/browse/FB8-50
Jira issue: https://jira.percona.com/browse/FB8-51
Reference Patch: 8d520fd
Reference Patch: 0e62abd
Notice: Network errors per user for I_S.USER_STATISTICS were dropped.
Currently there are no stats to capture the network errors while
communicating with the client. These stats will help better understand the
server perspective while debugging client side issues.
Test Plan: Run newly added unit test
Originally Reviewed By: pengt