Skip to content
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

Add 3 new status variables related to SET statements #4172

Open
wants to merge 5 commits into
base: v2.x
Choose a base branch
from

Conversation

javsanpar
Copy link
Contributor

Add status variables:

  • Com_backend_set_stmt
    • SET statements crafted and sent by ProxySQL.
  • Com_frontend_set_stmt
    • SET statements received by ProxySQL.
  • Com_frontend_failed_set_stmt
    • SET statements received by ProxySQL and failed to parse.

Add status variables:
* Com_backend_set_stmt
  - SET statements crafted and sent by ProxySQL.
* Com_frontend_set_stmt
  - SET statements received by ProxySQL.
* Com_frontend_failed_set_stmt
  - SET statements received by ProxySQL and failed to parse.
Test correct behaviour of backend_set_stmt, frontend_set_stmt and
frontend_failed_set_stmt status variables.
Future patches make ProxysSQL set by default MySQL variables, therefore
ProxySQL send SET statements on new connections that interfere with the
expected number of queries in the test_binlog_reader_t.
Use the difference between the number of SET statements before and after
the test queries. Otherwise, other tests in the CI may increase the
counters and make the test fail.
To avoid interference from extra SET statements during the test, disable
session tracking.
@mirostauder
Copy link
Collaborator

retest this please

@mirostauder
Copy link
Collaborator

Can one of the admins verify this patch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants