Type:
Bug
Priority:
Minor
Resolution:
Not a Bug
Affects Version/s:
None
Hey,
On an instance where `innodb_encrypt_tables` is set to ON, tables are not encrypted when it is not specified:
MariaDB [dba]> set wsrep_on=0;
Query OK, 0 rows affected (0.000 sec)
MariaDB [dba]> create table hello_test2 (id serial);
Query OK, 0 rows affected (0.023 sec)
MariaDB [dba]> show create table hello_test2\G
*************************** 1. row ***************************
Table : hello_test2
Create Table : CREATE TABLE `hello_test2` (
`id` bigint (20) unsigned NOT NULL AUTO_INCREMENT,
UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE =utf8mb4_general_ci
1 row in set (0.001 sec)
MariaDB [dba]> show session variables like 'innodb_encrypt_tables' ;
+ -----------------------+-------+
| Variable_name | Value |
+ -----------------------+-------+
| innodb_encrypt_tables | ON |
+ -----------------------+-------+
1 row in set (0.001 sec)
MariaDB [dba]> create table hello_test3 (id serial) encrypted=yes;
Query OK, 0 rows affected (0.080 sec)
MariaDB [dba]> show create table hello_test3\G
*************************** 1. row ***************************
Table : hello_test3
Create Table : CREATE TABLE `hello_test3` (
`id` bigint (20) unsigned NOT NULL AUTO_INCREMENT,
UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE =utf8mb4_general_ci `encrypted`=yes
1 row in set (0.001 sec)
Inspecting the table on the disk shows that both tables are actually encrypted.
Executing ALTER TABLE hello_test2 ENCRYPTED=yes rebuilds the table while it is actually already encrypted.
I would expect that the table shows up as encrypted=no if encryption is innodb_encrypt_tables is ON or FORCE.
And, next to that, I would expect that a table is not rebuilt if it is already encrypted by default, and then encryption is explicitly added to it by ALTER TABLE ... encrypted=Yes;
Thank you,
Michael
{"report":{"fcp":773.8000001907349,"ttfb":160.40000009536743,"pageVisibility":"visible","entityId":130958,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"2541b850-74d1-4011-973c-bbafd8192a9a","navigationType":0,"readyForUser":848.5,"redirectCount":0,"resourceLoadedEnd":975,"resourceLoadedStart":165.20000004768372,"resourceTiming":[{"duration":162.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":165.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":165.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":328.10000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":162.70000004768372,"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":165.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":165.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":328.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":171.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":165.60000014305115,"connectEnd":165.60000014305115,"connectStart":165.60000014305115,"domainLookupEnd":165.60000014305115,"domainLookupStart":165.60000014305115,"fetchStart":165.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":165.60000014305115,"responseEnd":336.90000009536743,"responseStart":336.90000009536743,"secureConnectionStart":165.60000014305115},{"duration":251.90000009536743,"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":165.70000004768372,"connectEnd":165.70000004768372,"connectStart":165.70000004768372,"domainLookupEnd":165.70000004768372,"domainLookupStart":165.70000004768372,"fetchStart":165.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":165.70000004768372,"responseEnd":417.60000014305115,"responseStart":417.60000014305115,"secureConnectionStart":165.70000004768372},{"duration":255.79999995231628,"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":165.80000019073486,"connectEnd":165.80000019073486,"connectStart":165.80000019073486,"domainLookupEnd":165.80000019073486,"domainLookupStart":165.80000019073486,"fetchStart":165.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":165.80000019073486,"responseEnd":421.60000014305115,"responseStart":421.60000014305115,"secureConnectionStart":165.80000019073486},{"duration":256.5,"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":165.90000009536743,"connectEnd":165.90000009536743,"connectStart":165.90000009536743,"domainLookupEnd":165.90000009536743,"domainLookupStart":165.90000009536743,"fetchStart":165.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":165.90000009536743,"responseEnd":422.40000009536743,"responseStart":422.40000009536743,"secureConnectionStart":165.90000009536743},{"duration":257.10000014305115,"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":166,"connectEnd":166,"connectStart":166,"domainLookupEnd":166,"domainLookupStart":166,"fetchStart":166,"redirectEnd":0,"redirectStart":0,"requestStart":166,"responseEnd":423.10000014305115,"responseStart":423.10000014305115,"secureConnectionStart":166},{"duration":257.59999990463257,"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":166.10000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":166.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":423.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":257.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":166.20000004768372,"connectEnd":166.20000004768372,"connectStart":166.20000004768372,"domainLookupEnd":166.20000004768372,"domainLookupStart":166.20000004768372,"fetchStart":166.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":166.20000004768372,"responseEnd":423.7000000476837,"responseStart":423.7000000476837,"secureConnectionStart":166.20000004768372},{"duration":258,"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":166.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":166.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":424.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":258,"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":166.40000009536743,"connectEnd":166.40000009536743,"connectStart":166.40000009536743,"domainLookupEnd":166.40000009536743,"domainLookupStart":166.40000009536743,"fetchStart":166.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":166.40000009536743,"responseEnd":424.40000009536743,"responseStart":424.40000009536743,"secureConnectionStart":166.40000009536743},{"duration":802.3999998569489,"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":171.60000014305115,"connectEnd":171.60000014305115,"connectStart":171.60000014305115,"domainLookupEnd":171.60000014305115,"domainLookupStart":171.60000014305115,"fetchStart":171.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":171.60000014305115,"responseEnd":974,"responseStart":974,"secureConnectionStart":171.60000014305115},{"duration":803.2999999523163,"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":171.70000004768372,"connectEnd":171.70000004768372,"connectStart":171.70000004768372,"domainLookupEnd":171.70000004768372,"domainLookupStart":171.70000004768372,"fetchStart":171.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":171.70000004768372,"responseEnd":975,"responseStart":975,"secureConnectionStart":171.70000004768372},{"duration":130.20000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":488.40000009536743,"connectEnd":488.40000009536743,"connectStart":488.40000009536743,"domainLookupEnd":488.40000009536743,"domainLookupStart":488.40000009536743,"fetchStart":488.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":488.40000009536743,"responseEnd":618.6000001430511,"responseStart":618.6000001430511,"secureConnectionStart":488.40000009536743},{"duration":328.2999999523163,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/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","startTime":697.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":697.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1025.5,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":12,"responseStart":160,"responseEnd":168,"domLoading":163,"domInteractive":993,"domContentLoadedEventStart":993,"domContentLoadedEventEnd":1029,"domComplete":1733,"loadEventStart":1733,"loadEventEnd":1734,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":977.6000001430511},{"name":"bigPipe.sidebar-id.end","time":978.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":978.6000001430511},{"name":"bigPipe.activity-panel-pipe-id.end","time":980.9000000953674},{"name":"activityTabFullyLoaded","time":1034.7000000476837}],"measures":[],"correlationId":"5ca5528fd39648","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":80,"dbReadsTimeInMs":10,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}