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

Update pt-mysql-summary #839

Merged
merged 8 commits into from
Jul 21, 2024
Merged

Update pt-mysql-summary #839

merged 8 commits into from
Jul 21, 2024

Conversation

MASTERGOKUL
Copy link
Contributor

Changed the deprecated variable name tx_isolation to transaction_isolation

"transaction_isolation was added in MySQL 5.7.20 as an alias for tx_isolation, which is now deprecated and is removed in MySQL 8.0. Applications should be adjusted to use transaction_isolation in preference to tx_isolation"

reference : https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_tx_isolation

Changed the deprecated variable name tx_isolation to transaction_isolation
@it-percona-cla
Copy link

it-percona-cla commented Jul 9, 2024

CLA assistant check
All committers have signed the CLA.

@svetasmirnova
Copy link
Collaborator

Thank you for your contribution. You changed the auto-generated code. The fix should go into the lib/bash/report_mysql_info.sh file. Please fix, then run ./util/update-modules bin/pt-mysql-summary , then run regression tests (I believe they also need to be adjusted).

Also, pt-mysql-summary should support older versions, so we need a condition here. Also, tests should be adjusted for 5.7.20+ and elder versions.

@MASTERGOKUL
Copy link
Contributor Author

MASTERGOKUL commented Jul 11, 2024

hello @svetasmirnova I updated the code with mysql version checks it is working fine as I run it. I am not aware of the regression tests, could you please infer me how to do it.

image
working fine actually 👆

MASTERGOKUL and others added 3 commits July 11, 2024 18:15
- Reversed condition, so default is transaction_isolation, not
  tx_isolation
- Removed extra variable: we have variable $version, defined before
- Fixed test cases
@svetasmirnova
Copy link
Collaborator

Thank you for the changes. I added a few more. Please review them and let us know if you agree.

@MASTERGOKUL
Copy link
Contributor Author

Thank you for the changes. I added a few more. Please review them and let us know if you agree.

I agree with the changes, and thank you for adding it.

@svetasmirnova svetasmirnova merged commit 1311903 into percona:3.x Jul 21, 2024
6 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.

5 participants