Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
10.4.6 , 10.5 , 10.6 , 10.7(EOL) , 10.8(EOL)
Environment:
Official docker image. Running on multiple hosts, docker for desktop (windows 10 pro) and rancherOS
I'm using the official MariaDB mariadb:10.4.6-bionic image and I have a problem: my tables corrupt themselves. This had happened at least four times this month:
on two different dev machines using docker-compose
on the staging machine using docker swarm
Everytime the symptom is that a table exists in the information schema but it can't be read or altered at all. Any operation leads to a 'Table does not exists in engine' error.
The container logs contain this error at startup:
[ERROR] InnoDB: Table sfdb.specialist contains unrecognizable instant ALTER metadata
I've checked the server system variables with
SHOW VARIABLES;
And alter_algorithm has the value DEFAULT which means (if I understand the documentation correctly) that it should not use the INSTANT algorithm, only INPLACE and COPY .
https://mariadb.com/kb/en/library/server-system-variables/#alter_algorithm
Trying to dig into the MariaDB codebase led me to this check:
https://github.com/MariaDB/server/blob/cccfa9dcfe2c161779824c01a84edfa64fc4378a/storage/innobase/btr/btr0cur.cc#L465
But I do not have enough knowledge of the inner workings of MariaDB to understand what is going on.
What am I doing wrong? Should I set some flag or configuration to have a stable database in docker?
PS: if this JIRA is not the correct place to ask this can you point me to a more suitable place to post my question ?
{"report":{"fcp":917.5,"ttfb":184.70000076293945,"pageVisibility":"visible","entityId":77871,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"ab1b9595-e39b-4937-b529-996d5a6c19ee","navigationType":0,"readyForUser":997,"redirectCount":0,"resourceLoadedEnd":1235.3000001907349,"resourceLoadedStart":190.30000019073486,"resourceTiming":[{"duration":291.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":190.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":190.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":481.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":291.3999996185303,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":190.60000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":190.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":482,"responseStart":0,"secureConnectionStart":0},{"duration":300.4000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":190.80000019073486,"connectEnd":190.80000019073486,"connectStart":190.80000019073486,"domainLookupEnd":190.80000019073486,"domainLookupStart":190.80000019073486,"fetchStart":190.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":190.80000019073486,"responseEnd":491.20000076293945,"responseStart":491.20000076293945,"secureConnectionStart":190.80000019073486},{"duration":327,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":190.9000005722046,"connectEnd":190.9000005722046,"connectStart":190.9000005722046,"domainLookupEnd":190.9000005722046,"domainLookupStart":190.9000005722046,"fetchStart":190.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":190.9000005722046,"responseEnd":517.9000005722046,"responseStart":517.9000005722046,"secureConnectionStart":190.9000005722046},{"duration":330.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":191.10000038146973,"connectEnd":191.10000038146973,"connectStart":191.10000038146973,"domainLookupEnd":191.10000038146973,"domainLookupStart":191.10000038146973,"fetchStart":191.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":191.10000038146973,"responseEnd":522,"responseStart":522,"secureConnectionStart":191.10000038146973},{"duration":331.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":191.30000019073486,"connectEnd":191.30000019073486,"connectStart":191.30000019073486,"domainLookupEnd":191.30000019073486,"domainLookupStart":191.30000019073486,"fetchStart":191.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":191.30000019073486,"responseEnd":522.5,"responseStart":522.5,"secureConnectionStart":191.30000019073486},{"duration":331.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":191.5,"connectEnd":191.5,"connectStart":191.5,"domainLookupEnd":191.5,"domainLookupStart":191.5,"fetchStart":191.5,"redirectEnd":0,"redirectStart":0,"requestStart":191.5,"responseEnd":523,"responseStart":523,"secureConnectionStart":191.5},{"duration":456.5999994277954,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":191.70000076293945,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":191.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":648.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":331.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":191.9000005722046,"connectEnd":191.9000005722046,"connectStart":191.9000005722046,"domainLookupEnd":191.9000005722046,"domainLookupStart":191.9000005722046,"fetchStart":191.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":191.9000005722046,"responseEnd":523.4000005722046,"responseStart":523.4000005722046,"secureConnectionStart":191.9000005722046},{"duration":456.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":192,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":192,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":648.5,"responseStart":0,"secureConnectionStart":0},{"duration":331.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":192.30000019073486,"connectEnd":192.30000019073486,"connectStart":192.30000019073486,"domainLookupEnd":192.30000019073486,"domainLookupStart":192.30000019073486,"fetchStart":192.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":192.30000019073486,"responseEnd":524,"responseStart":524,"secureConnectionStart":192.30000019073486},{"duration":682.9000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":193.30000019073486,"connectEnd":193.30000019073486,"connectStart":193.30000019073486,"domainLookupEnd":193.30000019073486,"domainLookupStart":193.30000019073486,"fetchStart":193.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":193.30000019073486,"responseEnd":876.2000007629395,"responseStart":876.2000007629395,"secureConnectionStart":193.30000019073486},{"duration":1037.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":197.5,"connectEnd":197.5,"connectStart":197.5,"domainLookupEnd":197.5,"domainLookupStart":197.5,"fetchStart":197.5,"redirectEnd":0,"redirectStart":0,"requestStart":197.5,"responseEnd":1235.3000001907349,"responseStart":1235.3000001907349,"secureConnectionStart":197.5},{"duration":390.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":732.5,"connectEnd":732.5,"connectStart":732.5,"domainLookupEnd":732.5,"domainLookupStart":732.5,"fetchStart":732.5,"redirectEnd":0,"redirectStart":0,"requestStart":732.5,"responseEnd":1123,"responseStart":1123,"secureConnectionStart":732.5},{"duration":411.3999996185303,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":910.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":910.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1322,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":21,"responseStart":185,"responseEnd":189,"domLoading":188,"domInteractive":1284,"domContentLoadedEventStart":1284,"domContentLoadedEventEnd":1322,"domComplete":2350,"loadEventStart":2350,"loadEventEnd":2352,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1268},{"name":"bigPipe.sidebar-id.end","time":1268.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":1269},{"name":"bigPipe.activity-panel-pipe-id.end","time":1271.4000005722046},{"name":"activityTabFullyLoaded","time":1329}],"measures":[],"correlationId":"2aa2a440b0035c","effectiveType":"4g","downlink":9.8,"rtt":0,"serverDuration":106,"dbReadsTimeInMs":13,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}