Note: See also MDEV-13105.
10.1 58f87a41bd
|
2017-06-16 20:15:25 139685753401472 [Note] InnoDB: Highest supported file format is Barracuda.
|
2017-06-16 20:15:25 139685753401472 [Note] InnoDB: The log sequence number 1622838 in ibdata file do not match the log sequence number 1626705 in the ib_logfiles!
|
InnoDB: Error: Current page size 16384 != page size on page 4096
|
2017-06-16 20:15:25 139685753401472 [ERROR] InnoDB: innodb-page-size mismatch in tablespace ./test/t1.ibd (table test/t1)
|
2017-06-16 20:15:25 139685753401472 [Note] InnoDB: Page size:1024 Pages to analyze:64
|
2017-06-16 20:15:25 139685753401472 [Note] InnoDB: Page size: 1024, Possible space_id count:0
|
2017-06-16 20:15:25 139685753401472 [Note] InnoDB: Page size:2048 Pages to analyze:48
|
2017-06-16 20:15:25 139685753401472 [Note] InnoDB: Page size: 2048, Possible space_id count:0
|
2017-06-16 20:15:25 139685753401472 [Note] InnoDB: Page size:4096 Pages to analyze:24
|
2017-06-16 20:15:25 139685753401472 [Note] InnoDB: Page size: 4096, Possible space_id count:0
|
2017-06-16 20:15:25 139685753401472 [Note] InnoDB: Page size:8192 Pages to analyze:12
|
2017-06-16 20:15:25 139685753401472 [Note] InnoDB: Page size: 8192, Possible space_id count:0
|
2017-06-16 20:15:25 139685753401472 [Note] InnoDB: Page size:16384 Pages to analyze:6
|
2017-06-16 20:15:25 139685753401472 [Note] InnoDB: VALID: space:4 page_no:0 page_size:16384
|
2017-06-16 20:15:25 139685753401472 [Note] InnoDB: VALID: space:4 page_no:1 page_size:16384
|
2017-06-16 20:15:25 139685753401472 [Note] InnoDB: VALID: space:4 page_no:2 page_size:16384
|
2017-06-16 20:15:25 139685753401472 [Note] InnoDB: VALID: space:4 page_no:3 page_size:16384
|
2017-06-16 20:15:25 139685753401472 [Note] InnoDB: Page size: 16384, Possible space_id count:1
|
2017-06-16 20:15:25 139685753401472 [Note] InnoDB: space_id:4, Number of pages matched: 4/4 (16384)
|
2017-06-16 20:15:25 139685753401472 [Note] InnoDB: Chosen space:4
|
|
2017-06-16 20:15:25 139685753401472 [Note] InnoDB: Restoring page 0 of tablespace 4
|
2017-06-16 20:15:25 139685753401472 [Warning] InnoDB: Doublewrite does not have page_no=0 of space: 4
|
2017-06-16 20:15:25 7f0b1fb63080 InnoDB: Operating system error number 2 in a file operation.
|
InnoDB: The error means the system cannot find the path specified.
|
InnoDB: If you are installing InnoDB, remember that you must create
|
InnoDB: directories yourself, InnoDB does not create them.
|
InnoDB: Error: could not open single-table tablespace file ./test/t1.ibd
|
InnoDB: We do not continue the crash recovery, because the table may become
|
InnoDB: corrupt if we cannot apply the log records in the InnoDB log to it.
|
InnoDB: To fix the problem and start mysqld:
|
InnoDB: 1) If there is a permission problem in the file and mysqld cannot
|
InnoDB: open the file, you should modify the permissions.
|
InnoDB: 2) If the table is not needed, or you can restore it from a backup,
|
InnoDB: then you can remove the .ibd file, and InnoDB will do a normal
|
InnoDB: crash recovery and ignore that table.
|
InnoDB: 3) If the file system or the disk is broken, and you cannot remove
|
InnoDB: the .ibd file, you can set innodb_force_recovery > 0 in my.cnf
|
InnoDB: and force InnoDB to continue crash recovery here.
|
170616 20:15:25 [ERROR] mysqld got signal 6 ;
|
#4 0x00007f0b1d7e03fa in abort () from /lib/x86_64-linux-gnu/libc.so.6
|
#5 0x000055a145567860 in fil_load_single_table_tablespace (dbname=0x7ffe592a15e0 "test", filename=0x7ffe592a25b0 "t1.ibd") at /data/src/10.1/storage/xtradb/fil/fil0fil.cc:5100
|
#6 0x000055a145568211 in fil_load_single_table_tablespaces (pred=0x0) at /data/src/10.1/storage/xtradb/fil/fil0fil.cc:5469
|
#7 0x000055a14537b51b in recv_init_crash_recovery () at /data/src/10.1/storage/xtradb/log/log0recv.cc:2999
|
#8 0x000055a14537bc95 in recv_recovery_from_checkpoint_start_func (type=78656949, limit_lsn=18446744073709551615, flushed_lsn=1622838) at /data/src/10.1/storage/xtradb/log/log0recv.cc:3286
|
#9 0x000055a14545dce9 in innobase_start_or_create_for_mysql () at /data/src/10.1/storage/xtradb/srv/srv0start.cc:2615
|
#10 0x000055a1452ef0f4 in innobase_init (p=0x7f0b1cc36a70) at /data/src/10.1/storage/xtradb/handler/ha_innodb.cc:4437
|
#11 0x000055a144fbd335 in ha_initialize_handlerton (plugin=0x7f0b1cf24880) at /data/src/10.1/sql/handler.cc:513
|
#12 0x000055a144d99d69 in plugin_initialize (tmp_root=0x7ffe592a7d60, plugin=0x7f0b1cf24880, argc=0x55a146015770 <remaining_argc>, argv=0x7f0b1cc33438, options_only=false) at /data/src/10.1/sql/sql_plugin.cc:1400
|
#13 0x000055a144d9a952 in plugin_init (argc=0x55a146015770 <remaining_argc>, argv=0x7f0b1cc33438, flags=2) at /data/src/10.1/sql/sql_plugin.cc:1678
|
#14 0x000055a144cb9c45 in init_server_components () at /data/src/10.1/sql/mysqld.cc:5149
|
#15 0x000055a144cbacb0 in mysqld_main (argc=7, argv=0x7f0b1cc33438) at /data/src/10.1/sql/mysqld.cc:5736
|
#16 0x000055a144cb0400 in main (argc=6, argv=0x7ffe592a8af8) at /data/src/10.1/sql/main.cc:25
|
To reproduce:
on 10.1.20 clean server started with all defaults
|
SET GLOBAL innodb_file_format = Barracuda;
|
CREATE TABLE `t1` (`i` INT, `pk` BIGINT AUTO_INCREMENT PRIMARY KEY)
|
ENGINE=InnoDB ROW_FORMAT=DYNAMIC PAGE_COMPRESSED=1 PAGE_COMPRESSION_LEVEL=9;
|
SIGKILL the server.
Then start the current 10.1 server on the same folder, observe the crash.
Alternatively, you can download the datadir as described above from here: ftp://ftp.askmonty.org/public/mdev13113_data.tar.gz and just start the current 10.1 on it.
- relates to
-
MDEV-13105
InnoDB fails to load a table with PAGE_COMPRESSION_LEVEL after upgrade from 10.1.20
-
-
Closed
{"report":{"fcp":789.9000000953674,"ttfb":201.5,"pageVisibility":"visible","entityId":61834,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"5e9c6b44-5d95-4630-9dbf-f3d8f73a23bb","navigationType":0,"readyForUser":863.7999999523163,"redirectCount":0,"resourceLoadedEnd":840.7000000476837,"resourceLoadedStart":207.10000014305115,"resourceTiming":[{"duration":146.39999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":207.10000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":207.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":353.5,"responseStart":0,"secureConnectionStart":0},{"duration":146.20000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":207.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":207.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":353.60000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":155.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":207.60000014305115,"connectEnd":207.60000014305115,"connectStart":207.60000014305115,"domainLookupEnd":207.60000014305115,"domainLookupStart":207.60000014305115,"fetchStart":207.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":207.60000014305115,"responseEnd":363.10000014305115,"responseStart":363.10000014305115,"secureConnectionStart":207.60000014305115},{"duration":215,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":207.60000014305115,"connectEnd":207.60000014305115,"connectStart":207.60000014305115,"domainLookupEnd":207.60000014305115,"domainLookupStart":207.60000014305115,"fetchStart":207.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":207.60000014305115,"responseEnd":422.60000014305115,"responseStart":422.60000014305115,"secureConnectionStart":207.60000014305115},{"duration":218.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":207.79999995231628,"connectEnd":207.79999995231628,"connectStart":207.79999995231628,"domainLookupEnd":207.79999995231628,"domainLookupStart":207.79999995231628,"fetchStart":207.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":207.79999995231628,"responseEnd":426.2999999523163,"responseStart":426.2999999523163,"secureConnectionStart":207.79999995231628},{"duration":219.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":207.90000009536743,"connectEnd":207.90000009536743,"connectStart":207.90000009536743,"domainLookupEnd":207.90000009536743,"domainLookupStart":207.90000009536743,"fetchStart":207.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":207.90000009536743,"responseEnd":427,"responseStart":427,"secureConnectionStart":207.90000009536743},{"duration":220.10000014305115,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":208,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":208,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":428.10000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":219.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":208,"connectEnd":208,"connectStart":208,"domainLookupEnd":208,"domainLookupStart":208,"fetchStart":208,"redirectEnd":0,"redirectStart":0,"requestStart":208,"responseEnd":427.5,"responseStart":427.5,"secureConnectionStart":208},{"duration":219.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":208.20000004768372,"connectEnd":208.20000004768372,"connectStart":208.20000004768372,"domainLookupEnd":208.20000004768372,"domainLookupStart":208.20000004768372,"fetchStart":208.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":208.20000004768372,"responseEnd":428.10000014305115,"responseStart":428.10000014305115,"secureConnectionStart":208.20000004768372},{"duration":220.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":208.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":208.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":428.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":220.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":208.40000009536743,"connectEnd":208.40000009536743,"connectStart":208.40000009536743,"domainLookupEnd":208.40000009536743,"domainLookupStart":208.40000009536743,"fetchStart":208.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":208.40000009536743,"responseEnd":429,"responseStart":429,"secureConnectionStart":208.40000009536743},{"duration":624.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":213.70000004768372,"connectEnd":213.70000004768372,"connectStart":213.70000004768372,"domainLookupEnd":213.70000004768372,"domainLookupStart":213.70000004768372,"fetchStart":213.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":213.70000004768372,"responseEnd":837.9000000953674,"responseStart":837.9000000953674,"secureConnectionStart":213.70000004768372},{"duration":626.9000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":213.79999995231628,"connectEnd":213.79999995231628,"connectStart":213.79999995231628,"domainLookupEnd":213.79999995231628,"domainLookupStart":213.79999995231628,"fetchStart":213.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":213.79999995231628,"responseEnd":840.7000000476837,"responseStart":840.7000000476837,"secureConnectionStart":213.79999995231628},{"duration":253.60000014305115,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":586.2999999523163,"connectEnd":586.2999999523163,"connectStart":586.2999999523163,"domainLookupEnd":586.2999999523163,"domainLookupStart":586.2999999523163,"fetchStart":586.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":586.2999999523163,"responseEnd":839.9000000953674,"responseStart":839.9000000953674,"secureConnectionStart":586.2999999523163},{"duration":106.60000014305115,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":767.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":767.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":874.1000001430511,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":49,"responseStart":201,"responseEnd":205,"domLoading":204,"domInteractive":994,"domContentLoadedEventStart":994,"domContentLoadedEventEnd":1040,"domComplete":1250,"loadEventStart":1250,"loadEventEnd":1250,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":970},{"name":"bigPipe.sidebar-id.end","time":970.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":970.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":972.2999999523163},{"name":"activityTabFullyLoaded","time":1059.2000000476837}],"measures":[],"correlationId":"524eccd294aaab","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":89,"dbReadsTimeInMs":14,"dbConnsTimeInMs":33,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Fixed in scope of
MDEV-13105by this commit:commit e555540ab6b9c3e0d4fdd00af093b115a9401d0a 8ae9c86f2a79f1301f5428542fc7f53feed7d4f4
Author: Marko Mäkelä <marko.makela@mariadb.com>
Date: Wed Jul 5 14:35:55 2017 +0300
MDEV-13105 InnoDB fails to load a table with PAGE_COMPRESSION_LEVEL after upgrade from 10.1.20
When using innodb_page_size=16k, InnoDB tables
that were created in MariaDB 10.1.0 to 10.1.20 with
PAGE_COMPRESSED=1 and
PAGE_COMPRESSION_LEVEL=2 or PAGE_COMPRESSION_LEVEL=3
would fail to load.
fsp_flags_is_valid(): When using innodb_page_size=16k, use a
more strict check for .ibd files, with the assumption that
nobody would try to use different-page-size files.