canonical / mysql-operator

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

Avoid any actions when a unit is offline and allow mysql GR to recover #334

Closed shayancanonical closed 1 year ago

shayancanonical commented 1 year ago

Issue

The SST test fails because we are taking an action when a unit is offline (we are currently trying to rejoin the instance to the cluster).

Solution

Do nothing, as MySQL Group Replication has logic around rejoining an offline instance.

codecov[bot] commented 1 year ago

Codecov Report

Merging #334 (58c3adb) into main (e4532cf) will increase coverage by 0.05%. The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #334      +/-   ##
==========================================
+ Coverage   63.96%   64.01%   +0.05%     
==========================================
  Files          16       16              
  Lines        2997     2993       -4     
  Branches      390      389       -1     
==========================================
- Hits         1917     1916       -1     
+ Misses        956      955       -1     
+ Partials      124      122       -2     
Files Coverage Δ
src/charm.py 51.91% <ø> (+0.31%) :arrow_up: