Crash-recovery on 10.4 from crc32 to full_crc32 or vice versa frequently brings the error messages in the error log:
10.4-enterprise 90fc8f11
|
2019-08-05 19:22:52 0 [Note] InnoDB: Waiting for purge to start
|
2019-08-05 19:22:52 1 [ERROR] InnoDB: Failed to find tablespace for table `test`.`tc035` in the cache. Attempting to load the tablespace with space id 39
|
2019-08-05 19:22:52 2 [ERROR] InnoDB: Failed to find tablespace for table `test`.`tc011` in the cache. Attempting to load the tablespace with space id 15
|
2019-08-05 19:22:52 2 [ERROR] InnoDB: Failed to find tablespace for table `test`.`tc031` in the cache. Attempting to load the tablespace with space id 35
|
2019-08-05 19:22:52 1 [ERROR] InnoDB: Failed to find tablespace for table `test`.`tc020` in the cache. Attempting to load the tablespace with space id 24
|
2019-08-05 19:22:52 2 [ERROR] InnoDB: Failed to find tablespace for table `test`.`tc032` in the cache. Attempting to load the tablespace with space id 36
|
2019-08-05 19:22:52 3 [ERROR] InnoDB: Failed to find tablespace for table `test`.`tc010` in the cache. Attempting to load the tablespace with space id 14
|
2019-08-05 19:22:52 4 [ERROR] InnoDB: Failed to find tablespace for table `test`.`tc024` in the cache. Attempting to load the tablespace with space id 28
|
2019-08-05 19:22:52 1 [ERROR] InnoDB: Failed to find tablespace for table `test`.`tc022` in the cache. Attempting to load the tablespace with space id 26
|
2019-08-05 19:22:52 3 [ERROR] InnoDB: Failed to find tablespace for table `test`.`tc036` in the cache. Attempting to load the tablespace with space id 40
|
2019-08-05 19:22:52 4 [ERROR] InnoDB: Failed to find tablespace for table `test`.`tc004` in the cache. Attempting to load the tablespace with space id 8
|
2019-08-05 19:22:52 1 [ERROR] InnoDB: Failed to find tablespace for table `test`.`tc007` in the cache. Attempting to load the tablespace with space id 11
|
2019-08-05 19:22:52 2 [ERROR] InnoDB: Failed to find tablespace for table `test`.`tc030` in the cache. Attempting to load the tablespace with space id 34
|
2019-08-05 19:22:52 3 [ERROR] InnoDB: Failed to find tablespace for table `test`.`tc033` in the cache. Attempting to load the tablespace with space id 37
|
2019-08-05 19:22:52 3 [ERROR] InnoDB: Failed to find tablespace for table `test`.`tc028` in the cache. Attempting to load the tablespace with space id 32
|
2019-08-05 19:22:52 3 [ERROR] InnoDB: Failed to find tablespace for table `test`.`tc017` in the cache. Attempting to load the tablespace with space id 21
|
2019-08-05 19:22:52 3 [ERROR] InnoDB: Failed to find tablespace for table `test`.`tc006` in the cache. Attempting to load the tablespace with space id 10
|
2019-08-05 19:22:52 1 [ERROR] InnoDB: Failed to find tablespace for table `test`.`tc008` in the cache. Attempting to load the tablespace with space id 12
|
2019-08-05 19:22:52 2 [ERROR] InnoDB: Failed to find tablespace for table `test`.`tc034` in the cache. Attempting to load the tablespace with space id 38
|
2019-08-05 19:22:52 1 [ERROR] InnoDB: Failed to find tablespace for table `test`.`tc019` in the cache. Attempting to load the tablespace with space id 23
|
2019-08-05 19:22:52 4 [ERROR] InnoDB: Failed to find tablespace for table `test`.`tc021` in the cache. Attempting to load the tablespace with space id 25
|
2019-08-05 19:22:52 4 [ERROR] InnoDB: Failed to find tablespace for table `test`.`tc018` in the cache. Attempting to load the tablespace with space id 22
|
2019-08-05 19:22:52 0 [Note] InnoDB: 10.4.6 started; log sequence number 21412559; transaction id 66470
|
As discussed with thiru, it is most likely a bogus error, and I indeed don't see any obvious problem with these tables (can SELECT, can ALTER, and the errors are only shown ones, don't re-appear after restart); but if the error message doesn't mean anything, it should be removed.
To reproduce, if needed:
git clone https://github.com/MariaDB/randgen --branch mdev20320 rqg-mdev20320
|
cd rqg-mdev20320
|
perl ./runall-new.pl --basedir=<your basedir> --threads=1 --grammar=conf/mariadb/oltp-transactional.yy --gendata=conf/mariadb/innodb_upgrade_compression.zz --mysqld=--innodb-compression-algorithm=none --mysqld1=--innodb_checksum_algorithm=crc32 --mysqld2=--innodb_checksum_algorithm=full_crc32 --scenario=CrashUpgrade --duration=100 --vardir=/dev/shm/vardir
|
- relates to
-
MDEV-19534
Make innodb_checksum_algorithm=full_crc32 by default, and remove innodb_checksums
-
-
Closed
{"report":{"fcp":1142.4000005722046,"ttfb":295.30000019073486,"pageVisibility":"visible","entityId":78017,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"ce80c3c8-427d-40c7-b1e4-e81458074f20","navigationType":0,"readyForUser":1234.3000001907349,"redirectCount":0,"resourceLoadedEnd":1494,"resourceLoadedStart":300.30000019073486,"resourceTiming":[{"duration":302.80000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":300.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":300.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":603.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":302.69999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":300.70000076293945,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":300.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":603.4000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":311.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":300.80000019073486,"connectEnd":300.80000019073486,"connectStart":300.80000019073486,"domainLookupEnd":300.80000019073486,"domainLookupStart":300.80000019073486,"fetchStart":300.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":300.80000019073486,"responseEnd":612.6000003814697,"responseStart":612.6000003814697,"secureConnectionStart":300.80000019073486},{"duration":425,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":301,"connectEnd":301,"connectStart":301,"domainLookupEnd":301,"domainLookupStart":301,"fetchStart":301,"redirectEnd":0,"redirectStart":0,"requestStart":301,"responseEnd":726,"responseStart":726,"secureConnectionStart":301},{"duration":428.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":301.30000019073486,"connectEnd":301.30000019073486,"connectStart":301.30000019073486,"domainLookupEnd":301.30000019073486,"domainLookupStart":301.30000019073486,"fetchStart":301.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":301.30000019073486,"responseEnd":730.1000003814697,"responseStart":730.1000003814697,"secureConnectionStart":301.30000019073486},{"duration":429,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":301.5,"connectEnd":301.5,"connectStart":301.5,"domainLookupEnd":301.5,"domainLookupStart":301.5,"fetchStart":301.5,"redirectEnd":0,"redirectStart":0,"requestStart":301.5,"responseEnd":730.5,"responseStart":730.5,"secureConnectionStart":301.5},{"duration":429.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":301.6000003814697,"connectEnd":301.6000003814697,"connectStart":301.6000003814697,"domainLookupEnd":301.6000003814697,"domainLookupStart":301.6000003814697,"fetchStart":301.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":301.6000003814697,"responseEnd":730.9000005722046,"responseStart":730.9000005722046,"secureConnectionStart":301.6000003814697},{"duration":456.6000003814697,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":301.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":301.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":758.4000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":429.4000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":302,"connectEnd":302,"connectStart":302,"domainLookupEnd":302,"domainLookupStart":302,"fetchStart":302,"redirectEnd":0,"redirectStart":0,"requestStart":302,"responseEnd":731.4000005722046,"responseStart":731.4000005722046,"secureConnectionStart":302},{"duration":456.3999996185303,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/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":302.20000076293945,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":302.20000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":758.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":429.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/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":302.4000005722046,"connectEnd":302.4000005722046,"connectStart":302.4000005722046,"domainLookupEnd":302.4000005722046,"domainLookupStart":302.4000005722046,"fetchStart":302.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":302.4000005722046,"responseEnd":731.9000005722046,"responseStart":731.9000005722046,"secureConnectionStart":302.4000005722046},{"duration":1184.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":308,"connectEnd":308,"connectStart":308,"domainLookupEnd":308,"domainLookupStart":308,"fetchStart":308,"redirectEnd":0,"redirectStart":0,"requestStart":308,"responseEnd":1492.5,"responseStart":1492.5,"secureConnectionStart":308},{"duration":1184.7999992370605,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":308.20000076293945,"connectEnd":308.20000076293945,"connectStart":308.20000076293945,"domainLookupEnd":308.20000076293945,"domainLookupStart":308.20000076293945,"fetchStart":308.20000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":308.20000076293945,"responseEnd":1493,"responseStart":1493,"secureConnectionStart":308.20000076293945},{"duration":152.80000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":770.9000005722046,"connectEnd":770.9000005722046,"connectStart":770.9000005722046,"domainLookupEnd":770.9000005722046,"domainLookupStart":770.9000005722046,"fetchStart":770.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":770.9000005722046,"responseEnd":923.7000007629395,"responseStart":923.7000007629395,"secureConnectionStart":770.9000005722046},{"duration":459.5999994277954,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":1034.4000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1034.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1494,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":127,"responseStart":296,"responseEnd":299,"domLoading":299,"domInteractive":1525,"domContentLoadedEventStart":1525,"domContentLoadedEventEnd":1572,"domComplete":1930,"loadEventStart":1930,"loadEventEnd":1931,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1500},{"name":"bigPipe.sidebar-id.end","time":1501},{"name":"bigPipe.activity-panel-pipe-id.start","time":1501.1000003814697},{"name":"bigPipe.activity-panel-pipe-id.end","time":1502.9000005722046},{"name":"activityTabFullyLoaded","time":1589.2000007629395}],"measures":[],"correlationId":"e39ce2fb1c2c94","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":104,"dbReadsTimeInMs":11,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Another, scarier-looking variation of probably the same problem:
2019-08-12 0:11:28 0 [ERROR] InnoDB: Refusing to load './test/tc001.ibd' (id=5, flags=0x15); dictionary contains id=5, flags=0x10021
2019-08-12 0:11:28 0 [ERROR] InnoDB: Operating system error number 2 in a file operation.
2019-08-12 0:11:28 0 [ERROR] InnoDB: The error means the system cannot find the path specified.
2019-08-12 0:11:28 0 [ERROR] InnoDB: If you are installing InnoDB, remember that you must create directories yourself, InnoDB does not create them.
2019-08-12 0:11:28 0 [ERROR] InnoDB: Could not find a valid tablespace file for ``test`.`tc001``. Please refer to https://mariadb.com/kb/en/innodb-data-dictionary-troubleshooting/ for how to resolve the issue.
To reproduce:
git clone https://github.com/MariaDB/randgen --branch mdev20320 rqg-mdev20320
cd rqg-mdev20320
perl ./runall-trials.pl --basedir=<your basedir> --vardir=<your vardir> --trials=5 --threads=4 --grammar=conf/mariadb/oltp-transactional.yy --gendata=mdev20320.zz --mysqld=--max-statement-time=20 --mysqld=--lock-wait-timeout=10 --mysqld=--innodb-lock-wait-timeout=5 --mysqld=--innodb-compression-algorithm=none --scenario=UndoLogUpgrade --duration=300 --mysqld1=--innodb_checksum_algorithm=crc32 --mysqld2=--innodb-checksum-algorithm=full_crc32
It can take a while, as the command above runs the test 5 times (till the first failure) every run is ~4 min, and it doesn't always happen on the 1st attempt.