A regression was introduced in 10.1.38. See the following behavior:
MariaDB [db1]> SET GLOBAL innodb_encrypt_tables=OFF;
|
Query OK, 0 rows affected (0.00 sec)
|
|
MariaDB [db1]> SET SESSION innodb_default_encryption_key_id=2;
|
Query OK, 0 rows affected (0.00 sec)
|
|
MariaDB [db1]> CREATE TABLE unencrypted_tab (id int primary key);
|
ERROR 1005 (HY000): Can't create table `db1`.`unencrypted_tab` (errno: 140 "Wrong create options")
|
MariaDB [db1]> SHOW WARNINGS;
|
+---------+------+--------------------------------------------------------------------------------+
|
| Level | Code | Message |
|
+---------+------+--------------------------------------------------------------------------------+
|
| Warning | 140 | InnoDB: innodb_encrypt_tables=OFF only allows ENCRYPTION_KEY_ID=1 |
|
| Error | 1005 | Can't create table `db1`.`unencrypted_tab` (errno: 140 "Wrong create options") |
|
| Warning | 1030 | Got error 140 "Wrong create options" from storage engine InnoDB |
|
+---------+------+--------------------------------------------------------------------------------+
|
3 rows in set (0.00 sec)
|
This can be worked around by setting innodb_default_encryption_key_id=1 or ENCRYPTED=NO. See the following:
MariaDB [db1]> SET SESSION innodb_default_encryption_key_id=1;
|
Query OK, 0 rows affected (0.00 sec)
|
|
MariaDB [db1]> CREATE TABLE unencrypted_tab (id int primary key);
|
Query OK, 0 rows affected (0.01 sec)
|
|
MariaDB [db1]> DROP TABLE unencrypted_tab;
|
Query OK, 0 rows affected (0.01 sec)
|
|
MariaDB [db1]> SET SESSION innodb_default_encryption_key_id=2;
|
Query OK, 0 rows affected (0.00 sec)
|
|
MariaDB [db1]> CREATE TABLE unencrypted_tab (id int primary key) ENCRYPTED=NO;
|
Query OK, 0 rows affected (0.01 sec)
|
It seems that this was introduced by the following change:
https://github.com/MariaDB/server/commit/ef40018535b71f0a4387fa6c1cc22e9991dfc0db#diff-48fb879ad9d11afdfac59268a011ba97
{"report":{"fcp":954.5,"ttfb":292.0999994277954,"pageVisibility":"visible","entityId":72639,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"281de851-9a93-4ffc-b58b-74b35777fd5c","navigationType":0,"readyForUser":1092.2999992370605,"redirectCount":0,"resourceLoadedEnd":1018.5999994277954,"resourceLoadedStart":297.5,"resourceTiming":[{"duration":136.39999961853027,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":297.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":297.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":433.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":137,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":297.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":297.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":434.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":189.10000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":297.8999996185303,"connectEnd":297.8999996185303,"connectStart":297.8999996185303,"domainLookupEnd":297.8999996185303,"domainLookupStart":297.8999996185303,"fetchStart":297.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":297.8999996185303,"responseEnd":487,"responseStart":487,"secureConnectionStart":297.8999996185303},{"duration":274.79999923706055,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":298,"connectEnd":298,"connectStart":298,"domainLookupEnd":298,"domainLookupStart":298,"fetchStart":298,"redirectEnd":0,"redirectStart":0,"requestStart":298,"responseEnd":572.7999992370605,"responseStart":572.7999992370605,"secureConnectionStart":298},{"duration":278.20000076293945,"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":298.29999923706055,"connectEnd":298.29999923706055,"connectStart":298.29999923706055,"domainLookupEnd":298.29999923706055,"domainLookupStart":298.29999923706055,"fetchStart":298.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":298.29999923706055,"responseEnd":576.5,"responseStart":576.5,"secureConnectionStart":298.29999923706055},{"duration":278.3999996185303,"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":298.5,"connectEnd":298.5,"connectStart":298.5,"domainLookupEnd":298.5,"domainLookupStart":298.5,"fetchStart":298.5,"redirectEnd":0,"redirectStart":0,"requestStart":298.5,"responseEnd":576.8999996185303,"responseStart":576.8999996185303,"secureConnectionStart":298.5},{"duration":278.5,"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":298.69999980926514,"connectEnd":298.69999980926514,"connectStart":298.69999980926514,"domainLookupEnd":298.69999980926514,"domainLookupStart":298.69999980926514,"fetchStart":298.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":298.69999980926514,"responseEnd":577.1999998092651,"responseStart":577.1999998092651,"secureConnectionStart":298.69999980926514},{"duration":329.70000076293945,"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":298.79999923706055,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":298.79999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":628.5,"responseStart":0,"secureConnectionStart":0},{"duration":278.5999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":299,"connectEnd":299,"connectStart":299,"domainLookupEnd":299,"domainLookupStart":299,"fetchStart":299,"redirectEnd":0,"redirectStart":0,"requestStart":299,"responseEnd":577.5999994277954,"responseStart":577.5999994277954,"secureConnectionStart":299},{"duration":329.3999996185303,"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":299.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":299.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":628.5999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":278.9000005722046,"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":299.29999923706055,"connectEnd":299.29999923706055,"connectStart":299.29999923706055,"domainLookupEnd":299.29999923706055,"domainLookupStart":299.29999923706055,"fetchStart":299.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":299.29999923706055,"responseEnd":578.1999998092651,"responseStart":578.1999998092651,"secureConnectionStart":299.29999923706055},{"duration":598.1999998092651,"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":300.0999994277954,"connectEnd":300.0999994277954,"connectStart":300.0999994277954,"domainLookupEnd":300.0999994277954,"domainLookupStart":300.0999994277954,"fetchStart":300.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":300.0999994277954,"responseEnd":898.2999992370605,"responseStart":898.2999992370605,"secureConnectionStart":300.0999994277954},{"duration":655.5,"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":300.19999980926514,"connectEnd":300.19999980926514,"connectStart":300.19999980926514,"domainLookupEnd":300.19999980926514,"domainLookupStart":300.19999980926514,"fetchStart":300.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":300.19999980926514,"responseEnd":955.6999998092651,"responseStart":955.6999998092651,"secureConnectionStart":300.19999980926514},{"duration":258.8999996185303,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":639.6999998092651,"connectEnd":639.6999998092651,"connectStart":639.6999998092651,"domainLookupEnd":639.6999998092651,"domainLookupStart":639.6999998092651,"fetchStart":639.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":639.6999998092651,"responseEnd":898.5999994277954,"responseStart":898.5999994277954,"secureConnectionStart":639.6999998092651},{"duration":180.89999961853027,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":947.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":947.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1128.0999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":45.89999961853027,"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","startTime":972.6999998092651,"connectEnd":972.6999998092651,"connectStart":972.6999998092651,"domainLookupEnd":972.6999998092651,"domainLookupStart":972.6999998092651,"fetchStart":972.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":972.6999998092651,"responseEnd":1018.5999994277954,"responseStart":1018.5999994277954,"secureConnectionStart":972.6999998092651}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":134,"responseStart":292,"responseEnd":295,"domLoading":295,"domInteractive":1155,"domContentLoadedEventStart":1155,"domContentLoadedEventEnd":1201,"domComplete":2059,"loadEventStart":2059,"loadEventEnd":2059,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1133},{"name":"bigPipe.sidebar-id.end","time":1133.7999992370605},{"name":"bigPipe.activity-panel-pipe-id.start","time":1133.8999996185303},{"name":"bigPipe.activity-panel-pipe-id.end","time":1136.2999992370605},{"name":"activityTabFullyLoaded","time":1223.5}],"measures":[],"correlationId":"89f57340ca97cf","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":97,"dbReadsTimeInMs":14,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}