Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
10.6
This issue was found during the testing of MDEV-24621 , by an intermittent failure of the test innodb.insert_into_empty . The failure occurred during the ROLLBACK of an INSERT into a table that was empty.
I was not able to repeat a failure on 10.6, but I think that a similar race condition is present. When we are computing statistics for an index tree, we failed to check whether an insert into an empty table is in progress by an active transaction. If yes, we should do what MVCC reads do: pretend that the table is empty.
No crash or other problem is known in the current 10.6 or in 10.7, but I think that it is better to treat this situation in a safe and consistent manner.
{"report":{"fcp":1171.2000007629395,"ttfb":286.1000003814697,"pageVisibility":"visible","entityId":102794,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"00d1bf7a-1489-45bf-ba61-685531e4d65a","navigationType":0,"readyForUser":1241.6000003814697,"redirectCount":0,"resourceLoadedEnd":1303.9000005722046,"resourceLoadedStart":291,"resourceTiming":[{"duration":414.6000003814697,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":291,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":291,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":705.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":414.79999923706055,"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":291.20000076293945,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":291.20000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":706,"responseStart":0,"secureConnectionStart":0},{"duration":423.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":291.4000005722046,"connectEnd":291.4000005722046,"connectStart":291.4000005722046,"domainLookupEnd":291.4000005722046,"domainLookupStart":291.4000005722046,"fetchStart":291.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":291.4000005722046,"responseEnd":715.3000001907349,"responseStart":715.3000001907349,"secureConnectionStart":291.4000005722046},{"duration":449.5,"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":291.6000003814697,"connectEnd":291.6000003814697,"connectStart":291.6000003814697,"domainLookupEnd":291.6000003814697,"domainLookupStart":291.6000003814697,"fetchStart":291.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":291.6000003814697,"responseEnd":741.1000003814697,"responseStart":741.1000003814697,"secureConnectionStart":291.6000003814697},{"duration":452.69999980926514,"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":291.80000019073486,"connectEnd":291.80000019073486,"connectStart":291.80000019073486,"domainLookupEnd":291.80000019073486,"domainLookupStart":291.80000019073486,"fetchStart":291.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":291.80000019073486,"responseEnd":744.5,"responseStart":744.5,"secureConnectionStart":291.80000019073486},{"duration":452.8999996185303,"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":292.1000003814697,"connectEnd":292.1000003814697,"connectStart":292.1000003814697,"domainLookupEnd":292.1000003814697,"domainLookupStart":292.1000003814697,"fetchStart":292.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":292.1000003814697,"responseEnd":745,"responseStart":745,"secureConnectionStart":292.1000003814697},{"duration":453.19999980926514,"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":292.20000076293945,"connectEnd":292.20000076293945,"connectStart":292.20000076293945,"domainLookupEnd":292.20000076293945,"domainLookupStart":292.20000076293945,"fetchStart":292.20000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":292.20000076293945,"responseEnd":745.4000005722046,"responseStart":745.3000001907349,"secureConnectionStart":292.20000076293945},{"duration":454.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":292.4000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":292.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":747,"responseStart":0,"secureConnectionStart":0},{"duration":453.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":292.5,"connectEnd":292.5,"connectStart":292.5,"domainLookupEnd":292.5,"domainLookupStart":292.5,"fetchStart":292.5,"redirectEnd":0,"redirectStart":0,"requestStart":292.5,"responseEnd":745.8000001907349,"responseStart":745.8000001907349,"secureConnectionStart":292.5},{"duration":454.3999996185303,"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":292.70000076293945,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":292.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":747.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":453.6000003814697,"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":292.80000019073486,"connectEnd":292.80000019073486,"connectStart":292.80000019073486,"domainLookupEnd":292.80000019073486,"domainLookupStart":292.80000019073486,"fetchStart":292.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":292.80000019073486,"responseEnd":746.4000005722046,"responseStart":746.4000005722046,"secureConnectionStart":292.80000019073486},{"duration":604,"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":298.1000003814697,"connectEnd":298.1000003814697,"connectStart":298.1000003814697,"domainLookupEnd":298.1000003814697,"domainLookupStart":298.1000003814697,"fetchStart":298.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":298.1000003814697,"responseEnd":902.1000003814697,"responseStart":902.1000003814697,"secureConnectionStart":298.1000003814697},{"duration":1005.6999998092651,"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":298.20000076293945,"connectEnd":298.20000076293945,"connectStart":298.20000076293945,"domainLookupEnd":298.20000076293945,"domainLookupStart":298.20000076293945,"fetchStart":298.20000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":298.20000076293945,"responseEnd":1303.9000005722046,"responseStart":1303.9000005722046,"secureConnectionStart":298.20000076293945},{"duration":285.19999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":933.7000007629395,"connectEnd":933.7000007629395,"connectStart":933.7000007629395,"domainLookupEnd":933.7000007629395,"domainLookupStart":933.7000007629395,"fetchStart":933.7000007629395,"redirectEnd":0,"redirectStart":0,"requestStart":933.7000007629395,"responseEnd":1218.9000005722046,"responseStart":1218.9000005722046,"secureConnectionStart":933.7000007629395}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":123,"responseStart":286,"responseEnd":292,"domLoading":289,"domInteractive":1322,"domContentLoadedEventStart":1322,"domContentLoadedEventEnd":1358,"domComplete":2320,"loadEventStart":2320,"loadEventEnd":2322,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1305.8000001907349},{"name":"bigPipe.sidebar-id.end","time":1306.6000003814697},{"name":"bigPipe.activity-panel-pipe-id.start","time":1306.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1309.1000003814697},{"name":"activityTabFullyLoaded","time":1364.2000007629395}],"measures":[],"correlationId":"28cf43368393b3","effectiveType":"4g","downlink":9.2,"rtt":0,"serverDuration":107,"dbReadsTimeInMs":13,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}