Type:
Bug
Priority:
Major
Resolution:
Duplicate
Affects Version/s:
10.4.19 , 10.5.13 , 10.6.5 , 10.4(EOL) , 10.5 , 10.6 , 10.7(EOL)
During a migration project I stumbled over invalid data and mariadb server crashes after changing charset and collation of tables.
I managed to boil the issue down to apparent InnoDB index issues in combination with modifying collations on existing tables. The issue is reproducible on different servers and appears in 10.4.19, 10.5.13 and 10.6.5. It does not appear in 10.2.38 and 10.3.29.
All that is required to provoke the issue is adding a one-column table with a key, adding some (partially crafted, but very basic) rows and then converting the collation (e.g. from utf8mb4_general_ci to utf8mb4_unicode_ci ).
Afterwards the table/index is broken and mariadb crashes if CHECK TABLE is issued for that table. I attached an .sql file which - if passed to the server - reliably causes a crash. I also added a log excerpt for that crash.
The table/index can be repaired manually by issuing an OPTIMIZE TABLE or ALTER TABLE <table> ENGINE=INNODB .
In our actual environment the issue also manifested in a way that some data just would not be retrieved when selected by the indexed column (and index errors were shown in the log). I believe that part has the same root cause, so I'm not adding any further info.
Do let me know if you need further information.
{"report":{"fcp":804,"ttfb":202,"pageVisibility":"visible","entityId":106052,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"26895063-dc19-4b7b-abc8-783598917863","navigationType":0,"readyForUser":930.2999999523163,"redirectCount":0,"resourceLoadedEnd":956.9000000953674,"resourceLoadedStart":206.90000009536743,"resourceTiming":[{"duration":198.39999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":206.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":206.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":405.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":198.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.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":207.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":405.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":207.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":207.20000004768372,"connectEnd":207.20000004768372,"connectStart":207.20000004768372,"domainLookupEnd":207.20000004768372,"domainLookupStart":207.20000004768372,"fetchStart":207.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":207.20000004768372,"responseEnd":414.40000009536743,"responseStart":414.40000009536743,"secureConnectionStart":207.20000004768372},{"duration":287.7999999523163,"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.40000009536743,"connectEnd":207.40000009536743,"connectStart":207.40000009536743,"domainLookupEnd":207.40000009536743,"domainLookupStart":207.40000009536743,"fetchStart":207.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":207.40000009536743,"responseEnd":495.2000000476837,"responseStart":495.2000000476837,"secureConnectionStart":207.40000009536743},{"duration":291.40000009536743,"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.5,"connectEnd":207.5,"connectStart":207.5,"domainLookupEnd":207.5,"domainLookupStart":207.5,"fetchStart":207.5,"redirectEnd":0,"redirectStart":0,"requestStart":207.5,"responseEnd":498.90000009536743,"responseStart":498.90000009536743,"secureConnectionStart":207.5},{"duration":291.7000000476837,"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.59999990463257,"connectEnd":207.59999990463257,"connectStart":207.59999990463257,"domainLookupEnd":207.59999990463257,"domainLookupStart":207.59999990463257,"fetchStart":207.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":207.59999990463257,"responseEnd":499.2999999523163,"responseStart":499.2999999523163,"secureConnectionStart":207.59999990463257},{"duration":292.2999999523163,"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":207.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":207.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":500.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":291.90000009536743,"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":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":499.7000000476837,"responseStart":499.7000000476837,"secureConnectionStart":207.79999995231628},{"duration":292.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","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":500.2000000476837,"responseStart":500.2000000476837,"secureConnectionStart":207.90000009536743},{"duration":292.40000009536743,"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.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":208.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":500.5,"responseStart":0,"secureConnectionStart":0},{"duration":292.39999985694885,"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.20000004768372,"connectEnd":208.20000004768372,"connectStart":208.20000004768372,"domainLookupEnd":208.20000004768372,"domainLookupStart":208.20000004768372,"fetchStart":208.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":208.20000004768372,"responseEnd":500.59999990463257,"responseStart":500.59999990463257,"secureConnectionStart":208.20000004768372},{"duration":631.7000000476837,"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.5,"connectEnd":213.5,"connectStart":213.5,"domainLookupEnd":213.5,"domainLookupStart":213.5,"fetchStart":213.5,"redirectEnd":0,"redirectStart":0,"requestStart":213.5,"responseEnd":845.2000000476837,"responseStart":845.2000000476837,"secureConnectionStart":213.5},{"duration":633,"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.5,"connectEnd":213.5,"connectStart":213.5,"domainLookupEnd":213.5,"domainLookupStart":213.5,"fetchStart":213.5,"redirectEnd":0,"redirectStart":0,"requestStart":213.5,"responseEnd":846.5,"responseStart":846.5,"secureConnectionStart":213.5},{"duration":115.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":568.0999999046326,"connectEnd":568.0999999046326,"connectStart":568.0999999046326,"domainLookupEnd":568.0999999046326,"domainLookupStart":568.0999999046326,"fetchStart":568.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":568.0999999046326,"responseEnd":683.5,"responseStart":683.5,"secureConnectionStart":568.0999999046326},{"duration":153.09999990463257,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":797.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":797.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":950.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":152.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":804.0999999046326,"connectEnd":804.0999999046326,"connectStart":804.0999999046326,"domainLookupEnd":804.0999999046326,"domainLookupStart":804.0999999046326,"fetchStart":804.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":804.0999999046326,"responseEnd":956.9000000953674,"responseStart":956.9000000953674,"secureConnectionStart":804.0999999046326}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":68,"responseStart":202,"responseEnd":207,"domLoading":205,"domInteractive":991,"domContentLoadedEventStart":991,"domContentLoadedEventEnd":1034,"domComplete":1853,"loadEventStart":1853,"loadEventEnd":1853,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":969.0999999046326},{"name":"bigPipe.sidebar-id.end","time":969.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":970.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":972.5},{"name":"activityTabFullyLoaded","time":1040.7999999523163}],"measures":[],"correlationId":"b244375086b9e3","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":75,"dbReadsTimeInMs":13,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}