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

proxysql 2.0.10 empty Queries_GTID_sync field in stats_mysql_connection_pool table #2615

Closed
MaxFedotov opened this issue Mar 25, 2020 · 2 comments · Fixed by #2868
Closed

Comments

@MaxFedotov
Copy link

Hello,

starting from version 2.0.9 when using proyxsql-binlog-reader for causal reads, Queries_GTID_sync field in stats_mysql_connection_pool table is always 0.

How to reproduce:
Install proxysql version 2.0.9 or 2.0.10
build proxysql-binlog-reader, configure proxysql and use test from this article: https://www.percona.com/blog/2020/02/18/configuring-proxysql-binlog-reader/

run test and select data from stats_mysql_connection_pool table

Admin> select hostgroup, Queries, Queries_GTID_sync from stats_mysql_connection_pool;
+-----------+---------+-------------------+
| hostgroup | Queries | Queries_GTID_sync |
+-----------+---------+-------------------+
| 1         | 19537   | 0                 |
| 2         | 11500   | 0                 |
| 2         | 37723   | 0                 |
+-----------+---------+-------------------+
3 rows in set (0.01 sec)

Queries_GTID_sync will be always 0, although all queries will be routed correctly

@MaxFedotov MaxFedotov changed the title proxysql 2.10 empty Queries_GTID_sync field in stats_mysql_connection_pool proxysql 2.0.10 empty Queries_GTID_sync field in stats_mysql_connection_pool Mar 25, 2020
@MaxFedotov MaxFedotov changed the title proxysql 2.0.10 empty Queries_GTID_sync field in stats_mysql_connection_pool proxysql 2.0.10 empty Queries_GTID_sync field in stats_mysql_connection_pool table Mar 25, 2020
@renecannao
Copy link
Contributor

Hi @MaxFedotov .
Thank you for the report.
We identified the root cause:
PR #2469 broke this, as it stops setting with_gtid , later required in MySQL_Connection::handler() to increment parent->queries_gtid_sync.

renecannao added a commit that referenced this issue Jun 9, 2020
Fixes #2615: Empty Queries_GTID_sync field
@MaxFedotov
Copy link
Author

@renecannao, thanks a lot!

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 a pull request may close this issue.

2 participants