canonical / mysql-operator

Machine charm for MySQL following the operator framework
https://charmhub.io/mysql
Apache License 2.0
7 stars 10 forks source link

DPE-3879 update endpoint on upgrade #426

Open paulomach opened 5 months ago

paulomach commented 5 months ago

Issue

Slow, no preemptive primary switchover on upgrade.

Solution

Add preemptive switchover where possible.

codecov[bot] commented 5 months ago

Codecov Report

Attention: Patch coverage is 28.57143% with 30 lines in your changes are missing coverage. Please review.

Project coverage is 65.98%. Comparing base (e7c1809) to head (144ce84). Report is 4 commits behind head on main.

:exclamation: Current head 144ce84 differs from pull request most recent head b60ee97. Consider uploading reports for the commit b60ee97 to get more accurate results

Files Patch % Lines
src/relations/mysql_provider.py 30.43% 15 Missing and 1 partial :warning:
src/upgrade.py 9.09% 9 Missing and 1 partial :warning:
src/mysql_vm_helpers.py 50.00% 3 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #426 +/- ## ========================================== - Coverage 66.25% 65.98% -0.27% ========================================== Files 17 17 Lines 3180 3199 +19 Branches 424 428 +4 ========================================== + Hits 2107 2111 +4 - Misses 935 951 +16 + Partials 138 137 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.