[MDEV-31506] Updating cluster to a new major version Reports Upgrade after a crash is not supported with rsync sst Created: 2023-06-20 Updated: 2024-01-17 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Galera, Galera SST, Storage Engine - InnoDB |
| Affects Version/s: | 10.8.8, 10.7, 10.6.14, 10.11.4 |
| Fix Version/s: | 10.11 |
| Type: | Bug | Priority: | Major |
| Reporter: | Tomi Tukiainen | Assignee: | Julius Goryavsky |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Amazon Linux using centos7-amd64 MariaDB server builds |
||
| Attachments: |
|
||||||||||||||||
| Issue Links: |
|
||||||||||||||||
| Description |
|
We are running a 5-node MariaDB Galera cluster and are unable to adapt the latest LTS 10.11. As a general approach we have completely automated database node setup and have only made changes to the cluster by replacing existing nodes with new ones with a changed configuration or later database server version. Here is how we're trying to update the cluster:
In the beginning our cluster was of version 10.6.14 and we tried to start updating directly to 10.11.4 by configuring & launching a node to the cluster. MariaDB server startup failed and reported the following error: WSREP: Failed to start mysqld for wsrep recovery: '[Note] Starting MariaDB 10.11.4-MariaDB-log source revision 4e2b93dffef2414a11ca5edc8d215f57ee5010e5 as process 5688 We then decided to try to updating one major version step at a time. Updating the cluster to version 10.7.8 succeeded. Attempt to update from 10.7.8 to 10.8.8 failed to a similar error message again. I found out that there's an earlier bug |
| Comments |
| Comment by Daniel Black [ 2023-06-22 ] | |
|
Might be able to do workaround container (docker) solution as part of scripts/wsrep_sst_mariabackup.sh:clean_at_exist to do the recovery. Cause is the rsync sst only does a FLUSH TABLE WITH READ LOCK, even docs suggest a BACKUP STAGE BLOCK COMMIT should be done. Possible to do between flush tables and rsync is:
(need to trigger a purge thread?) ref: | |
| Comment by Marko Mäkelä [ 2023-06-26 ] | |
|
The InnoDB redo log format was last changed in As far as I can tell, this affects both the default wsrep_sst_method=rsync and wsrep_sst_method=mariabackup. I wonder how upgrades from earlier versions to 10.2 (with a MySQL 5.7 compatible redo log format) or 10.5 ( |