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;
As far as I understand it, the problem is that DDL operations do not give storage engines any chance to modify the contents of the TABLE_SHARE that will be serialized to the .frm file. That file would contain the table options.
A similar problem exists with regard to ROW_FORMAT and innodb_default_row_format.
Marko Mäkelä
added a comment - Thank you for the report.
As far as I understand it, the problem is that DDL operations do not give storage engines any chance to modify the contents of the TABLE_SHARE that will be serialized to the .frm file. That file would contain the table options.
A similar problem exists with regard to ROW_FORMAT and innodb_default_row_format .
In the meantime I found that the table is actually encrypted, according to Information Schema INNODB_TABLESPACES_ENCRYPTION Table
Michaël de groot
added a comment - In the meantime I found that the table is actually encrypted, according to Information Schema INNODB_TABLESPACES_ENCRYPTION Table
ENCRYPTED=YES means the table will be encrypted even when innodb_encrypt_tables=OFF, and not simply "a table is encrypted"
Sergei Golubchik
added a comment - This is intentional, see https://mariadb.com/kb/en/innodb-enabling-encryption/
ENCRYPTED=YES means the table will be encrypted even when innodb_encrypt_tables=OFF , and not simply "a table is encrypted"
People
Oleksandr Byelkin
Michaël de groot
Votes:
0Vote for this issue
Watchers:
3Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":683.1000001430511,"ttfb":147.60000014305115,"pageVisibility":"visible","entityId":130958,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"8910c685-79ef-4661-a412-256aa4561f0a","navigationType":0,"readyForUser":751,"redirectCount":0,"resourceLoadedEnd":817.2999999523163,"resourceLoadedStart":153.20000004768372,"resourceTiming":[{"duration":8.299999952316284,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":153.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":153.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":161.5,"responseStart":0,"secureConnectionStart":0},{"duration":8.200000047683716,"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":153.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":153.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":161.70000004768372,"responseStart":0,"secureConnectionStart":0},{"duration":64.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":153.5,"connectEnd":153.5,"connectStart":153.5,"domainLookupEnd":153.5,"domainLookupStart":153.5,"fetchStart":153.5,"redirectEnd":0,"redirectStart":0,"requestStart":153.5,"responseEnd":217.90000009536743,"responseStart":217.90000009536743,"secureConnectionStart":153.5},{"duration":143.29999995231628,"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":153.60000014305115,"connectEnd":153.60000014305115,"connectStart":153.60000014305115,"domainLookupEnd":153.60000014305115,"domainLookupStart":153.60000014305115,"fetchStart":153.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":153.60000014305115,"responseEnd":296.90000009536743,"responseStart":296.90000009536743,"secureConnectionStart":153.60000014305115},{"duration":146.80000019073486,"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":153.79999995231628,"connectEnd":153.79999995231628,"connectStart":153.79999995231628,"domainLookupEnd":153.79999995231628,"domainLookupStart":153.79999995231628,"fetchStart":153.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":153.79999995231628,"responseEnd":300.60000014305115,"responseStart":300.60000014305115,"secureConnectionStart":153.79999995231628},{"duration":147.20000004768372,"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":153.90000009536743,"connectEnd":153.90000009536743,"connectStart":153.90000009536743,"domainLookupEnd":153.90000009536743,"domainLookupStart":153.90000009536743,"fetchStart":153.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":153.90000009536743,"responseEnd":301.10000014305115,"responseStart":301.10000014305115,"secureConnectionStart":153.90000009536743},{"duration":147.70000004768372,"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":154,"connectEnd":154,"connectStart":154,"domainLookupEnd":154,"domainLookupStart":154,"fetchStart":154,"redirectEnd":0,"redirectStart":0,"requestStart":154,"responseEnd":301.7000000476837,"responseStart":301.7000000476837,"secureConnectionStart":154},{"duration":148,"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":154.10000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":154.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":302.10000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":147.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":154.20000004768372,"connectEnd":154.20000004768372,"connectStart":154.20000004768372,"domainLookupEnd":154.20000004768372,"domainLookupStart":154.20000004768372,"fetchStart":154.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":154.20000004768372,"responseEnd":302.10000014305115,"responseStart":302.10000014305115,"secureConnectionStart":154.20000004768372},{"duration":148.20000004768372,"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":154.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":154.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":302.5,"responseStart":0,"secureConnectionStart":0},{"duration":148.20000004768372,"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":154.5,"connectEnd":154.5,"connectStart":154.5,"domainLookupEnd":154.5,"domainLookupStart":154.5,"fetchStart":154.5,"redirectEnd":0,"redirectStart":0,"requestStart":154.5,"responseEnd":302.7000000476837,"responseStart":302.7000000476837,"secureConnectionStart":154.5},{"duration":440.19999980926514,"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":155.10000014305115,"connectEnd":155.10000014305115,"connectStart":155.10000014305115,"domainLookupEnd":155.10000014305115,"domainLookupStart":155.10000014305115,"fetchStart":155.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":155.10000014305115,"responseEnd":595.2999999523163,"responseStart":595.2999999523163,"secureConnectionStart":155.10000014305115},{"duration":443,"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":155.20000004768372,"connectEnd":155.20000004768372,"connectStart":155.20000004768372,"domainLookupEnd":155.20000004768372,"domainLookupStart":155.20000004768372,"fetchStart":155.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":155.20000004768372,"responseEnd":598.2000000476837,"responseStart":598.2000000476837,"secureConnectionStart":155.20000004768372},{"duration":155,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":434.40000009536743,"connectEnd":434.40000009536743,"connectStart":434.40000009536743,"domainLookupEnd":434.40000009536743,"domainLookupStart":434.40000009536743,"fetchStart":434.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":434.40000009536743,"responseEnd":589.4000000953674,"responseStart":589.4000000953674,"secureConnectionStart":434.40000009536743},{"duration":7,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":608.1000001430511,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":608.1000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":615.1000001430511,"responseStart":0,"secureConnectionStart":0},{"duration":115.89999985694885,"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":682.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":682.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":798.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":115.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/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":683.7000000476837,"connectEnd":683.7000000476837,"connectStart":683.7000000476837,"domainLookupEnd":683.7000000476837,"domainLookupStart":683.7000000476837,"fetchStart":683.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":683.7000000476837,"responseEnd":799.4000000953674,"responseStart":799.4000000953674,"secureConnectionStart":683.7000000476837},{"duration":133.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/f51ef5507eea4c158f257c66c93b2a3f-CDN/lu2bu7/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","startTime":684.2000000476837,"connectEnd":684.2000000476837,"connectStart":684.2000000476837,"domainLookupEnd":684.2000000476837,"domainLookupStart":684.2000000476837,"fetchStart":684.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":684.2000000476837,"responseEnd":817.2999999523163,"responseStart":817.2999999523163,"secureConnectionStart":684.2000000476837}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":17,"responseStart":148,"responseEnd":150,"domLoading":151,"domInteractive":818,"domContentLoadedEventStart":818,"domContentLoadedEventEnd":861,"domComplete":1170,"loadEventStart":1170,"loadEventEnd":1170,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":789.6000001430511},{"name":"bigPipe.sidebar-id.end","time":790.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":790.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":791.9000000953674},{"name":"activityTabFullyLoaded","time":874.7000000476837}],"measures":[],"correlationId":"b286dbc769809e","effectiveType":"4g","downlink":9.4,"rtt":0,"serverDuration":75,"dbReadsTimeInMs":10,"dbConnsTimeInMs":16,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Thank you for the report.
As far as I understand it, the problem is that DDL operations do not give storage engines any chance to modify the contents of the TABLE_SHARE that will be serialized to the .frm file. That file would contain the table options.
A similar problem exists with regard to ROW_FORMAT and innodb_default_row_format.