[MDEV-15861] Galera cluster: SST should leave old binary logs alone Created: 2018-04-13 Updated: 2023-04-27 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Galera SST |
| Affects Version/s: | 10.2.13, 10.6.4 |
| Fix Version/s: | 10.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Rick Pizzi | Assignee: | Julius Goryavsky |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Description |
|
When a joiner node requests an SST, its data dir is wiped out in preparation for xtrabackup/mariabackup. I have observed that now the script also deletes all binlog files if present, even if they are in another folder. I feel that the existing binlogs should be left alone, as they may be useful eg. in troubleshooting issues in the cluster. Please, do not delete them. Thank you |
| Comments |
| Comment by Jan Lindström (Inactive) [ 2021-12-27 ] |
|
rpizzi Does it delete binlog files from any directory under datadir or only from one you have configured as storage directory ? |
| Comment by Rick Pizzi [ 2021-12-27 ] |
|
jplindst It looks for the log-bin directory and deletes all binlogs found there. |
| Comment by Jan Lindström (Inactive) [ 2021-12-28 ] |
|
sysprg Before deleting binlogs can we copy them to new files e.g. xxx_backup name? In SST idea is to get new binlog files from master so old binlog files should not be used anymore by default. |