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

Added metric MultiplexDisabled_ext #4241 #4430

Merged
merged 1 commit into from
Jan 19, 2024
Merged

Added metric MultiplexDisabled_ext #4241 #4430

merged 1 commit into from
Jan 19, 2024

Conversation

renecannao
Copy link
Contributor

In the output of PROXYSQL INTERNAL SESSION and stats_mysql_processlist.extended_info , MultiplexDisabled was only returning the output of MySQL_Connection::MultiplexDisabled() . If there was a transaction, or an error, multiplexing was disabled but MultiplexDisabled() was still reporting false. Therefore it was necessary to also check server_status flag and last_errno. This commits intruduces MultiplexDisabled_ext , that reports the output of: MySQL_Connection::MultiplexDisabled() || MySQL_Connection::isActiveTransaction()

This should make troubleshooting easier.

Also, removed any reference to deprecated STATUS_MYSQL_CONNECTION_TRANSACTION .

Closes #4241

In the output of PROXYSQL INTERNAL SESSION and stats_mysql_processlist.extended_info ,
MultiplexDisabled was only returning the output of MySQL_Connection::MultiplexDisabled() .
If there was a transaction, or an error, multiplexing was disabled but MultiplexDisabled() was
still reporting false. Therefore it was necessary to also check server_status flag and last_errno.
This commits intruduces MultiplexDisabled_ext , that reports the output of:
MySQL_Connection::MultiplexDisabled() || MySQL_Connection::isActiveTransaction()

This should make troubleshooting easier.

Also, removed any reference to deprecated STATUS_MYSQL_CONNECTION_TRANSACTION .

Closes #4241
@renecannao renecannao merged commit 7f57f20 into v2.x Jan 19, 2024
17 of 52 checks passed
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.

MySQL_Connection::MultiplexDisabled() should return true also if SERVER_STATUS_IN_TRANS is enabled
1 participant