Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
10.3(EOL) , 10.4(EOL) , 10.5 , 10.6 , 10.7(EOL) , 10.8(EOL) , 10.9(EOL) , 10.10(EOL)
In MDEV-13542 , many sources of crash on a corrupted page were fixed, but something in the function btr_cur_open_at_index_side() was missed.
if (height == ULINT_UNDEFINED) {
/* We are in the root node */
height = btr_page_get_level(page);
ut_a(height >= level);
This assertion could fail if a nonzero parameter level was supplied to the function. That is only the case when the inline wrapper function btr_pcur_open_at_index_side() is invoked with level>0 , which in turn is only possible in the following functions, related to InnoDB persistent statistics:
dict_stats_analyze_index_level()
dict_stats_analyze_index_for_n_prefix()
It would seem to make sense to remove the parameter level from the normal functions, and to write a special function that would be used when computing persistent statistics.
Furthermore, btr_cur_open_at_index_side() currently fails to return DB_CORRUPTION on PAGE_LEVEL mismatch or when from_left ? !page_has_prev(page) : !page_has_next(page) does not hold.
{"report":{"fcp":847.2999999523163,"ttfb":166.79999995231628,"pageVisibility":"visible","entityId":114880,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"5e3340b1-4818-45cc-9bc8-8eef89e7fae7","navigationType":0,"readyForUser":909.2000000476837,"redirectCount":0,"resourceLoadedEnd":1057.2999999523163,"resourceLoadedStart":176.10000014305115,"resourceTiming":[{"duration":247,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":176.10000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":176.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":423.10000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":246.90000009536743,"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":176.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":176.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":423.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":256.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":176.5,"connectEnd":176.5,"connectStart":176.5,"domainLookupEnd":176.5,"domainLookupStart":176.5,"fetchStart":176.5,"redirectEnd":0,"redirectStart":0,"requestStart":176.5,"responseEnd":432.60000014305115,"responseStart":432.60000014305115,"secureConnectionStart":176.5},{"duration":281.2000000476837,"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":176.90000009536743,"connectEnd":176.90000009536743,"connectStart":176.90000009536743,"domainLookupEnd":176.90000009536743,"domainLookupStart":176.90000009536743,"fetchStart":176.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":176.90000009536743,"responseEnd":458.10000014305115,"responseStart":458.10000014305115,"secureConnectionStart":176.90000009536743},{"duration":284.60000014305115,"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":177,"connectEnd":177,"connectStart":177,"domainLookupEnd":177,"domainLookupStart":177,"fetchStart":177,"redirectEnd":0,"redirectStart":0,"requestStart":177,"responseEnd":461.60000014305115,"responseStart":461.60000014305115,"secureConnectionStart":177},{"duration":285.19999980926514,"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":177.10000014305115,"connectEnd":177.10000014305115,"connectStart":177.10000014305115,"domainLookupEnd":177.10000014305115,"domainLookupStart":177.10000014305115,"fetchStart":177.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":177.10000014305115,"responseEnd":462.2999999523163,"responseStart":462.2999999523163,"secureConnectionStart":177.10000014305115},{"duration":286,"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":177.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":177.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":463.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":285.40000009536743,"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":177.29999995231628,"connectEnd":177.29999995231628,"connectStart":177.29999995231628,"domainLookupEnd":177.29999995231628,"domainLookupStart":177.29999995231628,"fetchStart":177.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":177.29999995231628,"responseEnd":462.7000000476837,"responseStart":462.7000000476837,"secureConnectionStart":177.29999995231628},{"duration":286.2999999523163,"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":177.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":177.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":463.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":285.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":177.5,"connectEnd":177.5,"connectStart":177.5,"domainLookupEnd":177.5,"domainLookupStart":177.5,"fetchStart":177.5,"redirectEnd":0,"redirectStart":0,"requestStart":177.5,"responseEnd":463.2999999523163,"responseStart":463.2999999523163,"secureConnectionStart":177.5},{"duration":286.2999999523163,"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":177.60000014305115,"connectEnd":177.60000014305115,"connectStart":177.60000014305115,"domainLookupEnd":177.60000014305115,"domainLookupStart":177.60000014305115,"fetchStart":177.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":177.60000014305115,"responseEnd":463.90000009536743,"responseStart":463.90000009536743,"secureConnectionStart":177.60000014305115},{"duration":455.59999990463257,"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":184.20000004768372,"connectEnd":184.20000004768372,"connectStart":184.20000004768372,"domainLookupEnd":184.20000004768372,"domainLookupStart":184.20000004768372,"fetchStart":184.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":184.20000004768372,"responseEnd":639.7999999523163,"responseStart":639.7999999523163,"secureConnectionStart":184.20000004768372},{"duration":872.6999998092651,"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":184.60000014305115,"connectEnd":184.60000014305115,"connectStart":184.60000014305115,"domainLookupEnd":184.60000014305115,"domainLookupStart":184.60000014305115,"fetchStart":184.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":184.60000014305115,"responseEnd":1057.2999999523163,"responseStart":1057.2999999523163,"secureConnectionStart":184.60000014305115},{"duration":398.19999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":658.1000001430511,"connectEnd":658.1000001430511,"connectStart":658.1000001430511,"domainLookupEnd":658.1000001430511,"domainLookupStart":658.1000001430511,"fetchStart":658.1000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":658.1000001430511,"responseEnd":1056.2999999523163,"responseStart":1056.2999999523163,"secureConnectionStart":658.1000001430511}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":26,"responseStart":166,"responseEnd":184,"domLoading":170,"domInteractive":1080,"domContentLoadedEventStart":1080,"domContentLoadedEventEnd":1111,"domComplete":1797,"loadEventStart":1797,"loadEventEnd":1798,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1063.4000000953674},{"name":"bigPipe.sidebar-id.end","time":1064.1000001430511},{"name":"bigPipe.activity-panel-pipe-id.start","time":1064.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":1066.4000000953674},{"name":"activityTabFullyLoaded","time":1117.9000000953674}],"measures":[],"correlationId":"9838f1778239b6","effectiveType":"4g","downlink":9.3,"rtt":0,"serverDuration":81,"dbReadsTimeInMs":16,"dbConnsTimeInMs":25,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}