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

Replace command of fetching replica status for MySQL 8.4 #18

Merged
merged 8 commits into from
Oct 8, 2024

Conversation

Arthur1
Copy link
Member

@Arthur1 Arthur1 commented Oct 7, 2024

SHOW SLAVE STATUS command was deprecated in MySQL 8.0, but has been removed in 8.4. In other words, mackerel-plugin-mysql calling this command cannot work with MySQL 8.4.

This pull request makes the plugin to call SHOW REPLICA STATUS command instead of SHOW SLAVE STATUS if MySQL version is 8.0.22 or later.

I also fixed a test script that fails because MySQL container for testing had moved up to 8.4.

@coveralls
Copy link

coveralls commented Oct 7, 2024

Pull Request Test Coverage Report for Build 11226401964

Details

  • 0 of 15 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.5%) to 66.065%

Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/mysql.go 0 15 0.0%
Totals Coverage Status
Change from base Build 7999942968: -0.5%
Covered Lines: 695
Relevant Lines: 1052

💛 - Coveralls

Copy link
Contributor

@yseto yseto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems good.

@Arthur1 Arthur1 merged commit 11f71db into main Oct 8, 2024
12 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.

3 participants