Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
10.1(EOL) , 10.2(EOL) , 10.3(EOL) , 10.4(EOL) , 10.5
(filed under Storage Engine - InnoDB because there is no component "Storage Engine - Blackhole", but it affects InnoDB compatibility)
Previous versions of InnoDB had a max index length of <1KB. Most modern versions of MariaDB increase that to 3KB+ (the innodb_large_prefix option).
Blackhole, while it is not an engine enabled by default on MariaDB, it is still shipped with it, and may have some limited usage for which it would be useful, even if can create many issues. One of the usages is to replicate to a separate server but ignore all data. However, there is a big compatibility issue between InnoDB and blackhole, and that is that indexes on Blackhole cannot be larger than 1KB.
max index length for Blackwhole is an arbitrary constant (https://github.com/MariaDB/server/blob/10.6/storage/blackhole/ha_blackhole.h#L70 ), and increasing it is very simple (no complex data to manage), but Oracle MySQL ignored the upstream bug report: https://bugs.mysql.com/bug.php?id=53588
Percona has applied such a patch: https://github.com/percona/percona-server/pull/2000 , and it has already a 3KB limit. I don't see a reason not to apply the same patch (or a similar, it is a one line change + tests) as it would improve compatibility, not break it.
{"report":{"fcp":2222.199999809265,"ttfb":946.1999998092651,"pageVisibility":"visible","entityId":93051,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"a1f55469-dfe5-4b77-8b1e-66b2fca68396","navigationType":0,"readyForUser":2318.199999809265,"redirectCount":0,"resourceLoadedEnd":2598.0999999046326,"resourceLoadedStart":961.8999996185303,"resourceTiming":[{"duration":653.7000002861023,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":961.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":961.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1615.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":653.8000001907349,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":962.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":962.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1616,"responseStart":0,"secureConnectionStart":0},{"duration":749.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":962.3999996185303,"connectEnd":962.3999996185303,"connectStart":962.3999996185303,"domainLookupEnd":962.3999996185303,"domainLookupStart":962.3999996185303,"fetchStart":962.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":962.3999996185303,"responseEnd":1712.1999998092651,"responseStart":1712.1999998092651,"secureConnectionStart":962.3999996185303},{"duration":833.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":962.5,"connectEnd":962.5,"connectStart":962.5,"domainLookupEnd":962.5,"domainLookupStart":962.5,"fetchStart":962.5,"redirectEnd":0,"redirectStart":0,"requestStart":962.5,"responseEnd":1796.3999996185303,"responseStart":1796.3999996185303,"secureConnectionStart":962.5},{"duration":837.7000002861023,"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":962.8999996185303,"connectEnd":962.8999996185303,"connectStart":962.8999996185303,"domainLookupEnd":962.8999996185303,"domainLookupStart":962.8999996185303,"fetchStart":962.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":962.8999996185303,"responseEnd":1800.5999999046326,"responseStart":1800.5999999046326,"secureConnectionStart":962.8999996185303},{"duration":838.0999999046326,"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":963,"connectEnd":963,"connectStart":963,"domainLookupEnd":963,"domainLookupStart":963,"fetchStart":963,"redirectEnd":0,"redirectStart":0,"requestStart":963,"responseEnd":1801.0999999046326,"responseStart":1801.0999999046326,"secureConnectionStart":963},{"duration":838.4000000953674,"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":963.0999999046326,"connectEnd":963.0999999046326,"connectStart":963.0999999046326,"domainLookupEnd":963.0999999046326,"domainLookupStart":963.0999999046326,"fetchStart":963.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":963.0999999046326,"responseEnd":1801.5,"responseStart":1801.5,"secureConnectionStart":963.0999999046326},{"duration":897.2000002861023,"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":963.3999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":963.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1860.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":838.6999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":963.5,"connectEnd":963.5,"connectStart":963.5,"domainLookupEnd":963.5,"domainLookupStart":963.5,"fetchStart":963.5,"redirectEnd":0,"redirectStart":0,"requestStart":963.5,"responseEnd":1802.1999998092651,"responseStart":1802.1999998092651,"secureConnectionStart":963.5},{"duration":897,"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":963.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":963.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1860.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":838.9000000953674,"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":963.8999996185303,"connectEnd":963.8999996185303,"connectStart":963.8999996185303,"domainLookupEnd":963.8999996185303,"domainLookupStart":963.8999996185303,"fetchStart":963.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":963.8999996185303,"responseEnd":1802.7999997138977,"responseStart":1802.7999997138977,"secureConnectionStart":963.8999996185303},{"duration":1632.9000000953674,"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":964.6999998092651,"connectEnd":964.6999998092651,"connectStart":964.6999998092651,"domainLookupEnd":964.6999998092651,"domainLookupStart":964.6999998092651,"fetchStart":964.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":964.6999998092651,"responseEnd":2597.5999999046326,"responseStart":2597.5999999046326,"secureConnectionStart":964.6999998092651},{"duration":1627.2000002861023,"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":970.8999996185303,"connectEnd":970.8999996185303,"connectStart":970.8999996185303,"domainLookupEnd":970.8999996185303,"domainLookupStart":970.8999996185303,"fetchStart":970.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":970.8999996185303,"responseEnd":2598.0999999046326,"responseStart":2598.0999999046326,"secureConnectionStart":970.8999996185303},{"duration":518.4000000953674,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1875.8999996185303,"connectEnd":1875.8999996185303,"connectStart":1875.8999996185303,"domainLookupEnd":1875.8999996185303,"domainLookupStart":1875.8999996185303,"fetchStart":1875.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":1875.8999996185303,"responseEnd":2394.2999997138977,"responseStart":2394.2999997138977,"secureConnectionStart":1875.8999996185303},{"duration":386.3999996185303,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":2215.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":2215.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2601.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":366.2000002861023,"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&whisper-enabled=true","startTime":2397.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":2397.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2764.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":356.7999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/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&whisper-enabled=true","startTime":2399.0999999046326,"connectEnd":2399.0999999046326,"connectStart":2399.0999999046326,"domainLookupEnd":2399.0999999046326,"domainLookupStart":2399.0999999046326,"fetchStart":2399.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":2399.0999999046326,"responseEnd":2755.8999996185303,"responseStart":2755.8999996185303,"secureConnectionStart":2399.0999999046326},{"duration":360.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/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.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":2399.5999999046326,"connectEnd":2399.5999999046326,"connectStart":2399.5999999046326,"domainLookupEnd":2399.5999999046326,"domainLookupStart":2399.5999999046326,"fetchStart":2399.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":2399.5999999046326,"responseEnd":2760.199999809265,"responseStart":2760.199999809265,"secureConnectionStart":2399.5999999046326}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":792,"responseStart":946,"responseEnd":951,"domLoading":959,"domInteractive":2701,"domContentLoadedEventStart":2701,"domContentLoadedEventEnd":2763,"domComplete":3175,"loadEventStart":3175,"loadEventEnd":3176,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2602.699999809265},{"name":"bigPipe.sidebar-id.end","time":2603.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":2603.7999997138977},{"name":"bigPipe.activity-panel-pipe-id.end","time":2604.8999996185303},{"name":"activityTabFullyLoaded","time":2780.3999996185303}],"measures":[],"correlationId":"321aa1a0b9c754","effectiveType":"4g","downlink":9,"rtt":0,"serverDuration":99,"dbReadsTimeInMs":13,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Sure, seems easy.
10.5 still exposes 3500 with the comment:
For page sizes = 16k, InnoDB historically reported 3500 bytes here,
But the MySQL limit of 3072 was always used through the handler
interface.
Changing MAX_KEY also in the patch seems easy enough as this defaults to the current 64, though is compile time configurable to 127/8.
Testing https://github.com/MariaDB/server/commit/4fa6638031d968c955f224bf1d71ea1e80648ecf