[MDEV-23870] innodb cross upgrade mysql-5.7.31 -> mariadb-10.1.47 faile Created: 2020-10-02  Updated: 2020-10-02  Resolved: 2020-10-02

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - InnoDB
Affects Version/s: 10.1.47
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Daniel Black Assignee: Unassigned
Resolution: Not a Bug Votes: 0
Labels: None

Attachments: File mysql-5.7-data.tar.gz    

 Description   

mysql-5.7.31 innodb_fast_shutdown=0

$ mysql57server 
2020-10-02T00:20:37.297800Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2020-10-02T00:20:37.297884Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2020-10-02T00:20:37.297899Z 0 [Note] /usr/local/mysql-5.7.31/bin/mysqld (mysqld 5.7.31) starting as process 1455577 ...
2020-10-02T00:20:37.304002Z 0 [Note] InnoDB: PUNCH HOLE support available
2020-10-02T00:20:37.304016Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2020-10-02T00:20:37.304021Z 0 [Note] InnoDB: Uses event mutexes
2020-10-02T00:20:37.304026Z 0 [Note] InnoDB: GCC builtin __sync_synchronize() is used for memory barrier
2020-10-02T00:20:37.304029Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-10-02T00:20:37.304033Z 0 [Note] InnoDB: Using Linux native AIO
2020-10-02T00:20:37.304173Z 0 [Note] InnoDB: Number of pools: 1
2020-10-02T00:20:37.304230Z 0 [Note] InnoDB: Using CPU crc32 instructions
2020-10-02T00:20:37.305113Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2020-10-02T00:20:37.310433Z 0 [Note] InnoDB: Completed initialization of buffer pool
2020-10-02T00:20:37.311974Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2020-10-02T00:20:37.323643Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2020-10-02T00:20:37.330755Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-10-02T00:20:37.330814Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-10-02T00:20:37.346521Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2020-10-02T00:20:37.347141Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2020-10-02T00:20:37.347147Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2020-10-02T00:20:37.347350Z 0 [Note] InnoDB: Waiting for purge to start
2020-10-02T00:20:37.397573Z 0 [Note] InnoDB: 5.7.31 started; log sequence number 2720164
2020-10-02T00:20:37.397881Z 0 [Note] InnoDB: Loading buffer pool(s) from /usr/local/mysql-5.7.31/data/ib_buffer_pool
2020-10-02T00:20:37.398082Z 0 [Note] Plugin 'FEDERATED' is disabled.
2020-10-02T00:20:37.400099Z 0 [Note] InnoDB: Buffer pool(s) load completed at 201002 10:20:37
2020-10-02T00:20:37.406424Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
2020-10-02T00:20:37.406436Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
2020-10-02T00:20:37.406904Z 0 [Warning] CA certificate ca.pem is self signed.
2020-10-02T00:20:37.406925Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
2020-10-02T00:20:37.412525Z 0 [Note] Event Scheduler: Loaded 0 events
2020-10-02T00:20:37.412704Z 0 [Note] /usr/local/mysql-5.7.31/bin/mysqld: ready for connections.
Version: '5.7.31'  socket: '/tmp/mysql5.7.sock'  port: 0  MySQL Community Server (GPL)
2020-10-02T00:21:38.000217Z 0 [Note] Giving 0 client threads a chance to die gracefully
2020-10-02T00:21:38.000369Z 0 [Note] Shutting down slave threads
2020-10-02T00:21:38.000395Z 0 [Note] Forcefully disconnecting 0 remaining clients
2020-10-02T00:21:38.000417Z 0 [Note] Event Scheduler: Purging the queue. 0 events
2020-10-02T00:21:38.000624Z 0 [Note] Binlog end
2020-10-02T00:21:38.001788Z 0 [Note] Shutting down plugin 'auth_socket'
2020-10-02T00:21:38.001818Z 0 [Note] Shutting down plugin 'ngram'
2020-10-02T00:21:38.001827Z 0 [Note] Shutting down plugin 'ARCHIVE'
2020-10-02T00:21:38.001835Z 0 [Note] Shutting down plugin 'BLACKHOLE'
2020-10-02T00:21:38.001844Z 0 [Note] Shutting down plugin 'partition'
2020-10-02T00:21:38.001850Z 0 [Note] Shutting down plugin 'MyISAM'
2020-10-02T00:21:38.001866Z 0 [Note] Shutting down plugin 'CSV'
2020-10-02T00:21:38.001874Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'
2020-10-02T00:21:38.001884Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2020-10-02T00:21:38.001895Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2020-10-02T00:21:38.001902Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2020-10-02T00:21:38.001922Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2020-10-02T00:21:38.001928Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2020-10-02T00:21:38.001936Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2020-10-02T00:21:38.001949Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2020-10-02T00:21:38.001960Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2020-10-02T00:21:38.001971Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2020-10-02T00:21:38.001979Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2020-10-02T00:21:38.001990Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2020-10-02T00:21:38.002003Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2020-10-02T00:21:38.002016Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2020-10-02T00:21:38.002024Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2020-10-02T00:21:38.002035Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2020-10-02T00:21:38.002050Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
2020-10-02T00:21:38.002062Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
2020-10-02T00:21:38.002072Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2020-10-02T00:21:38.002084Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2020-10-02T00:21:38.002095Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2020-10-02T00:21:38.002106Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2020-10-02T00:21:38.002118Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2020-10-02T00:21:38.002128Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2020-10-02T00:21:38.002135Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
2020-10-02T00:21:38.002142Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2020-10-02T00:21:38.002152Z 0 [Note] Shutting down plugin 'INNODB_CMP'
2020-10-02T00:21:38.002159Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2020-10-02T00:21:38.002170Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'
2020-10-02T00:21:38.002181Z 0 [Note] Shutting down plugin 'INNODB_TRX'
2020-10-02T00:21:38.002193Z 0 [Note] Shutting down plugin 'InnoDB'
2020-10-02T00:21:38.002351Z 0 [Note] InnoDB: FTS optimize thread exiting.
2020-10-02T00:21:38.002703Z 0 [Note] InnoDB: Starting shutdown...
2020-10-02T00:21:38.103453Z 0 [Note] InnoDB: Dumping buffer pool(s) to /usr/local/mysql-5.7.31/data/ib_buffer_pool
2020-10-02T00:21:38.104018Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 201002 10:21:38
2020-10-02T00:21:39.223250Z 0 [Note] InnoDB: Shutdown completed; log sequence number 2720192
2020-10-02T00:21:39.225137Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2020-10-02T00:21:39.225154Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
2020-10-02T00:21:39.225159Z 0 [Note] Shutting down plugin 'MEMORY'
2020-10-02T00:21:39.225162Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2020-10-02T00:21:39.225182Z 0 [Note] Shutting down plugin 'sha256_password'
2020-10-02T00:21:39.225184Z 0 [Note] Shutting down plugin 'mysql_native_password'
2020-10-02T00:21:39.225380Z 0 [Note] Shutting down plugin 'binlog'
2020-10-02T00:21:39.225715Z 0 [Note] /usr/local/mysql-5.7.31/bin/mysqld: Shutdown complete

mariadb-10.1.47 fails to start

~/repos/build-mariadb-server-10.1 
$ cp -a /usr/local/mysql-5.7.31/data/ /tmp/build-mariadb-server-10.1-datadir
 
~/repos/build-mariadb-server-10.1 
$ sql/mysqld --no-defaults --skip-networking --datadir=/tmp/${PWD##*/}-datadir --socket=/tmp/${PWD##*/}.sock --verbose --lc-messages-dir=$PWD/sql/share
2020-10-02 10:22:11 139742783696768 [Note] sql/mysqld (mysqld 10.1.47-MariaDB) starting as process 1455724 ...
2020-10-02 10:22:11 139742783696768 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.
 
2020-10-02 10:22:11 139742783696768 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2020-10-02 10:22:11 139742783696768 [Note] InnoDB: The InnoDB memory heap is disabled
2020-10-02 10:22:11 139742783696768 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2020-10-02 10:22:11 139742783696768 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2020-10-02 10:22:11 139742783696768 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-10-02 10:22:11 139742783696768 [Note] InnoDB: Using Linux native AIO
2020-10-02 10:22:11 139742783696768 [Note] InnoDB: Using SSE crc32 instructions
2020-10-02 10:22:11 139742783696768 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2020-10-02 10:22:11 139742783696768 [Note] InnoDB: Completed initialization of buffer pool
2020-10-02 10:22:11 139742783696768 [Note] InnoDB: Highest supported file format is Barracuda.
InnoDB: No valid checkpoint found.
InnoDB: A downgrade from MariaDB 10.2.2 or later is not supported.
InnoDB: If this error appears when you are creating an InnoDB database,
InnoDB: the problem may be that during an earlier attempt you managed
InnoDB: to create the InnoDB data files, but log file creation failed.
InnoDB: If that is the case, please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.6/en/error-creating-innodb.html
2020-10-02 10:22:11 139742783696768 [ERROR] Plugin 'InnoDB' init function returned error.
2020-10-02 10:22:11 139742783696768 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2020-10-02 10:22:11 139742783696768 [Note] Plugin 'FEEDBACK' is disabled.
2020-10-02 10:22:11 139742783696768 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
2020-10-02 10:22:11 139742783696768 [ERROR] Unknown/unsupported storage engine: InnoDB
2020-10-02 10:22:11 139742783696768 [ERROR] Aborting



 Comments   
Comment by Daniel Black [ 2020-10-02 ]

Appoligies - 10.2 minimium

Comment by Marko Mäkelä [ 2020-10-02 ]

This is indeed by design. When I introduced the InnoDB redo log file format version identifier in MySQL 5.7.9, I carefully designed it so that older versions would refuse to start up. The message is admittedly a little obscure, but this is because I did not add code to older versions for parsing the log header block to get more details.

Generated at Thu Feb 08 09:25:41 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.