[MDEV-29321] Percona XtraDB 5.7 can't be upgrade to MariaDB 10.6 or above Created: 2022-08-18 Updated: 2022-09-05 Resolved: 2022-08-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Galera, Storage Engine - InnoDB |
| Affects Version/s: | 10.6.8, 10.6 |
| Fix Version/s: | 10.6.10, 10.7.6, 10.8.5, 10.9.3, 10.10.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Tuukka Pasanen | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Buster, Debian, innodb | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
If one first installs Percona XtraDB 5.7 and after that tries to upgrade to MariaDB 10.6 server SigSEGV with signal 11. Backtrace for the crash is:
This is probably something to WSRep (as in backtrace) but when runnign Percona XtraDB there is some additional WSRep plugin which is not available when running plain MariaDB.
This bug has happen between current release and release before that. To test this it's easiest to use Podman or Docker Debian 10 (Buster) image and run script
Server crashes event with `--help`
|
| Comments |
| Comment by Marko Mäkelä [ 2022-08-18 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
The crash occurs in trx_rseg_format_upgrade(). I don’t think that this code has substantially changed since 10.5 ( illuusio, what do you mean by "between current release and release before that"? What would happen with the recently released 10.6.9? Does the server start up if Galera is not being used? (Are you sure that you are using the correct version of Galera? Starting with MariaDB Server 10.4.2, libgalera4 is supposed to be used. | ||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Tuukka Pasanen [ 2022-08-18 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
This test if for Debian 10 (Buster) and Percona XtraDB 5.7 requires Galera 3.x and MariaDB 10.6 requires Galera 4.x (which is available on Backports). I'll do test build with https://salsa.debian.org/mariadb-team/mariadb-server/-/commit/f4d06db1293c3ec340ae2be6347971274ba38160 (Debian 10.6.8 commit) in Salsa-CI when it was working. It could be also something that Percona has made during this time. This run is 2 months ago https://salsa.debian.org/mariadb-team/mariadb-server/-/jobs/2798656 and it works as expected. | ||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-08-18 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
I do not see any message like InnoDB: Upgrading redo log:. There should have been one, unless the ib_logfile* were deleted before MariaDB was started. Please make sure that the log files are not deleted. Potentially, the XtraDB server hung on shutdown and was forcibly killed. If the log files are deleted (or innodb_force_recovery=6 is used), basically all bets are off. | ||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Tuukka Pasanen [ 2022-08-18 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
I attached mysql dir before MariaDB is upgraded and `mysql.log` fom Percona XtraDB launch | ||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-08-18 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
I can repeat this on the varlibmysql-perconaxtradb57.tar.gz This failure is related to an incompatible change that was made in MySQL 5.7 but not in MariaDB (see
We skipped this rollback segment in trx_rseg_array_init() because the page number was FIL_NULL. Some logic was changed in
With that, the server starts up:
| ||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Tuukka Pasanen [ 2022-08-19 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
This is fixed now: https://salsa.debian.org/illuusio/mariadb-server/-/jobs/3122466 |