Skip to content

Conversation

sinclert-canonical
Copy link
Contributor

This PR adds a cluster health check to the create-backup action, which can be overridden using the force param.

The MySQL cluster could be in any of the states listed in this documentation page. From those, only OK and OK_PARTIAL are considered safe, given that the rest of the states could introduce downtime (like the no-tolerance states) or data-loss (lost quorum, error, etc), when performing a backup.

Additional changes

  • Unnecessary mocking using PropertyMock class has been simplified.

@sinclert-canonical sinclert-canonical added the enhancement New feature, UI change, or workload upgrade label Sep 4, 2025
@sinclert-canonical sinclert-canonical force-pushed the sinclert/8050/backup-safety-checks branch 2 times, most recently from f26cb28 to a653ea0 Compare September 4, 2025 12:07
@sinclert-canonical sinclert-canonical marked this pull request as ready for review September 5, 2025 09:31
Copy link
Contributor

@carlcsaposs-canonical carlcsaposs-canonical left a comment

Choose a reason for hiding this comment

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

@sinclert-canonical sinclert-canonical force-pushed the sinclert/8050/backup-safety-checks branch from a653ea0 to 24a435e Compare September 9, 2025 08:18
@sinclert-canonical
Copy link
Contributor Author

PR branch rebased from main branch.

Copy link
Contributor

@paulomach paulomach left a comment

Choose a reason for hiding this comment

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

lgtm, but please include extra text in action and update documentation.

Copy link
Contributor

@taurus-forever taurus-forever left a comment

Choose a reason for hiding this comment

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

LGTM, please indicate it properly in the official documentation and the next release notes. It is an important changes.

P.S. please check Mykola comments before merging.

@sinclert-canonical sinclert-canonical force-pushed the sinclert/8050/backup-safety-checks branch 2 times, most recently from eab3ebc to 9b0f7c6 Compare September 12, 2025 11:22
@sinclert-canonical sinclert-canonical force-pushed the sinclert/8050/backup-safety-checks branch from 9b0f7c6 to 68a3e21 Compare September 12, 2025 11:28
@sinclert-canonical sinclert-canonical merged commit 4f0bab6 into main Sep 12, 2025
248 of 250 checks passed
@sinclert-canonical sinclert-canonical deleted the sinclert/8050/backup-safety-checks branch September 12, 2025 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature, UI change, or workload upgrade Libraries: Out of sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants