[MDEV-28880] Upgrade from MariaDB 10.3.32 to MariaDB 10.6.8 has errors/issues/documentation Created: 2022-06-17 Updated: 2023-01-22 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.3.32, 10.6.8 |
| Fix Version/s: | 10.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | F K | Assignee: | Thirunarayanan Balathandayuthapani |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | Compatibility, innodb | ||
| Environment: |
Red Hat Enterprise Linux release 8.6 (Ootpa) |
||
| Issue Links: |
|
||||||||
| Description |
|
Hello, 1.
preventing startup after upgrade. so mariadb_upgrade could not be run and server could not be started Therefore we downgraded back to 10.3.32 and ran MySQL commands
then shutdown then upgraded to 10.6.8 again with the same problem. We had to delete the ib_logfile0 file, upgrade to 10.6.8 and restart to upgrade. Here are related logs:
Here are related my.cnf settings:
What we did not try: Stop slave replication manually before shutdown and then upgrade. 2.
one server had it twenty times in the last month, one server had it four times, one server had it twice, one server had it once. We performed OPTIMIZE TABLE TABLENAMEREDACTED on the master and slaves to recreate table just in case. Other notes: all servers are runing with the following setting which enable parallel replication.
3. |
| Comments |
| Comment by F K [ 2022-08-10 ] | ||
|
Regarding issue number 2: 2022-06-19 0:07:59 292734 [ERROR] mariadbd: Can't find record in 'TABLENAMEREDACTED' | ||
| Comment by F K [ 2022-08-20 ] | ||
|
Follow up: | ||
| Comment by F K [ 2022-09-16 ] | ||
|
Follow up: | ||
| Comment by Marko Mäkelä [ 2022-11-30 ] | ||
|
This looks like a possible duplicate of What were the following parameters before the upgrade?
A work-around for that bug was to change one of these parameters before upgrading, so that the log files were rebuilt. That error occurred when the log block at checkpoint is at least 4 GiB from the start of the log file. To check if this is a duplicate of | ||
| Comment by F K [ 2022-11-30 ] | ||
|
> What were the following parameters before the upgrade? > To check if this is a duplicate of | ||
| Comment by F K [ 2022-11-30 ] | ||
|
Is it "ususally" safe the way we did it? | ||
| Comment by Marko Mäkelä [ 2022-11-30 ] | ||
|
No, I can never recommend deleting the ib_logfile*. It is safer to let the server resize the redo log on startup. That is, change one or both the parameters (the minimum innodb_log_files_in_group in MariaDB is 1), start up and shut down the old server, and then upgrade to 10.5 or later. I think that with 2×16G log files, you may very possibly have hit | ||
| Comment by F K [ 2022-11-30 ] | ||
|
Thank you for reply. | ||
| Comment by Marko Mäkelä [ 2022-12-01 ] | ||
|
FK, only if the FIL_PAGE_FILE_FLUSH_LSN in the system tablespace had been updated on shutdown, it was safe to delete the log files. Sometimes, a server shutdown could hang before that happens, and something could silently kill the shut down server. That is why I advise against manually deleting the files. Nothing can reliably catch all inconsistencies caused by lost logs. The worst thing that can happen is not that some committed transactions written since the last log checkpoint could be lost, but that some data pages (which had been written between the latest checkpoint and the time the server was killed and the log files removed) would be newer than FIL_PAGE_FILE_FLUSH_LSN. The result could be broken links between index pages, or incorrect links to undo pages. CHECK TABLE (especially after Because of the widespread unsafe practice of deleting ib_logfile*, I implemented The feedback that this ticket is waiting for is a copy of the first 2048 bytes of ib_logfile0 for a cleanly shut down data directory for which an upgrade fails. | ||
| Comment by F K [ 2022-12-01 ] | ||
|
> The feedback that this ticket is waiting for is a copy of the first 2048 bytes of ib_logfile0 for a cleanly shut down data directory for which an upgrade fails. This is no longer available. Of note, this ticket has two issues, one it the one you replied too, and one is regarding |