- start server with file_key_management plugin and a valid key_management_filename, otherwise default options;
- create an encrypted InnoDB table;
- shutdown the server;
- start server without file_key_management plugin (or with an invalid key_management_filename which is basically the same)
=>
2015-08-09 18:01:14 140240402089824 [ERROR] InnoDB: Tablespace id 7 encrypted but encryption service not available. Can't continue opening tablespace.
|
|
2015-08-09 18:01:14 7f8c43598760 InnoDB: Assertion failure in thread 140240402089824 in file ha_innodb.cc line 21140
|
InnoDB: We intentionally generate a memory trap.
|
Stack trace from 10.1 afd59b575a75ebbc57f71ce2865fdff85e3e233b
|
#3 <signal handler called>
|
#4 0x00007f7ad3829165 in *__GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
|
#5 0x00007f7ad382c3e0 in *__GI_abort () at abort.c:92
|
#6 0x00007f7ad655baf0 in ib_logf (level=IB_LOG_LEVEL_FATAL, format=0x7f7ad6c80900 "Tablespace id %ld encrypted but encryption service not available. Can't continue opening tablespace.\n") at 10.1/storage/xtradb/handler/ha_innodb.cc:21140
|
#7 0x00007f7ad67a8801 in fil_read_first_page (data_file=13, one_read_already=0, flags=0x7ffeb27fd0a8, space_id=0x7ffeb27fd0a0, min_flushed_lsn=0x7ffeb27fd098, max_flushed_lsn=0x7ffeb27fd098, crypt_data=0x7ffeb27fd0b8) at 10.1/storage/xtradb/fil/fil0fil.cc:2066
|
#8 0x00007f7ad67abae2 in fil_open_single_table_tablespace (validate=true, fix_dict=true, id=4, flags=0, tablename=0x7f7ab122c478 "test/t1", path_in=0x0) at 10.1/storage/xtradb/fil/fil0fil.cc:3765
|
#9 0x00007f7ad6785da5 in dict_check_tablespaces_and_store_max_id (dict_check=DICT_CHECK_NONE_LOADED) at 10.1/storage/xtradb/dict/dict0load.cc:1171
|
#10 0x00007f7ad66a8656 in innobase_start_or_create_for_mysql () at 10.1/storage/xtradb/srv/srv0start.cc:2592
|
#11 0x00007f7ad653e9d4 in innobase_init (p=0x7f7ad2c2e270) at 10.1/storage/xtradb/handler/ha_innodb.cc:4101
|
#12 0x00007f7ad63cdd56 in ha_initialize_handlerton (plugin=0x7f7ad2d756e8) at 10.1/sql/handler.cc:513
|
#13 0x00007f7ad61b44cc in plugin_initialize (tmp_root=0x7ffeb2801750, plugin=0x7f7ad2d756e8, argc=0x7f7ad7476430, argv=0x7f7ad2c1e6a0, options_only=false) at 10.1/sql/sql_plugin.cc:1407
|
#14 0x00007f7ad61b509e in plugin_init (argc=0x7f7ad7476430, argv=0x7f7ad2c1e6a0, flags=2) at 10.1/sql/sql_plugin.cc:1680
|
#15 0x00007f7ad6097fe4 in init_server_components () at 10.1/sql/mysqld.cc:5160
|
#16 0x00007f7ad6098f7c in mysqld_main (argc=11, argv=0x7f7ad2c1e6a0) at 10.1/sql/mysqld.cc:5717
|
#17 0x00007f7ad608e800 in main (argc=11, argv=0x7ffeb28024a8) at 10.1/sql/main.cc:25
|
I would expect that the table could not be read, but crashing on startup because there is an unreadable user table (not a system table!) seems to be an overkill.
Also,[ documentation|https://mariadb.com/kb/en/mariadb/data-at-rest-encryption/#file_key_management_filename] suggests otherwise:
If the key file can not be read at server startup, for example if the file key is not present, the encryption will not work and encrypted tables will be unreadable.
{"report":{"fcp":991.7999999523163,"ttfb":426.89999997615814,"pageVisibility":"visible","entityId":52534,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"6106e909-50a7-4935-aedc-a584186f6b49","navigationType":0,"readyForUser":1052.5999999642372,"redirectCount":0,"resourceLoadedEnd":1018.5,"resourceLoadedStart":434,"resourceTiming":[{"duration":74.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":434,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":434,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":508.5,"responseStart":0,"secureConnectionStart":0},{"duration":74.90000003576279,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":434.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":434.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":509.19999998807907,"responseStart":0,"secureConnectionStart":0},{"duration":125.59999996423721,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":434.5,"connectEnd":434.5,"connectStart":434.5,"domainLookupEnd":434.5,"domainLookupStart":434.5,"fetchStart":434.5,"redirectEnd":0,"redirectStart":0,"requestStart":512.6999999880791,"responseEnd":560.0999999642372,"responseStart":524.1999999880791,"secureConnectionStart":434.5},{"duration":138.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":434.69999998807907,"connectEnd":434.69999998807907,"connectStart":434.69999998807907,"domainLookupEnd":434.69999998807907,"domainLookupStart":434.69999998807907,"fetchStart":434.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":512.7999999523163,"responseEnd":573.0999999642372,"responseStart":525,"secureConnectionStart":434.69999998807907},{"duration":88.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":434.7999999523163,"connectEnd":434.7999999523163,"connectStart":434.7999999523163,"domainLookupEnd":434.7999999523163,"domainLookupStart":434.7999999523163,"fetchStart":434.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":513.3999999761581,"responseEnd":523.5,"responseStart":522.7999999523163,"secureConnectionStart":434.7999999523163},{"duration":111.80000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":435.0999999642372,"connectEnd":435.0999999642372,"connectStart":435.0999999642372,"domainLookupEnd":435.0999999642372,"domainLookupStart":435.0999999642372,"fetchStart":435.0999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":518.5,"responseEnd":546.8999999761581,"responseStart":546.0999999642372,"secureConnectionStart":435.0999999642372},{"duration":119.19999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":435.19999998807907,"connectEnd":435.19999998807907,"connectStart":435.19999998807907,"domainLookupEnd":435.19999998807907,"domainLookupStart":435.19999998807907,"fetchStart":435.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":519.0999999642372,"responseEnd":554.3999999761581,"responseStart":553.5999999642372,"secureConnectionStart":435.19999998807907},{"duration":83.80000001192093,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":435.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":435.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":519.1999999880791,"responseStart":0,"secureConnectionStart":0},{"duration":98.40000003576279,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":435.5999999642372,"connectEnd":522.0999999642372,"connectStart":522.0999999642372,"domainLookupEnd":522.0999999642372,"domainLookupStart":522.0999999642372,"fetchStart":435.5999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":522.2999999523163,"responseEnd":534,"responseStart":532.6999999880791,"secureConnectionStart":522.0999999642372},{"duration":84.59999996423721,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":435.69999998807907,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":435.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":520.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":101.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":435.89999997615814,"connectEnd":435.89999997615814,"connectStart":435.89999997615814,"domainLookupEnd":435.89999997615814,"domainLookupStart":435.89999997615814,"fetchStart":435.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":523.5999999642372,"responseEnd":537,"responseStart":534.5999999642372,"secureConnectionStart":435.89999997615814},{"duration":365.9000000357628,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":447.0999999642372,"connectEnd":447.0999999642372,"connectStart":447.0999999642372,"domainLookupEnd":447.0999999642372,"domainLookupStart":447.0999999642372,"fetchStart":447.0999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":710.6999999880791,"responseEnd":813,"responseStart":807.8999999761581,"secureConnectionStart":447.0999999642372},{"duration":569.8000000119209,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":448.69999998807907,"connectEnd":448.69999998807907,"connectStart":448.69999998807907,"domainLookupEnd":448.69999998807907,"domainLookupStart":448.69999998807907,"fetchStart":448.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":1008.3999999761581,"responseEnd":1018.5,"responseStart":1017.7999999523163,"secureConnectionStart":448.69999998807907},{"duration":226.70000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":748.7999999523163,"connectEnd":748.7999999523163,"connectStart":748.7999999523163,"domainLookupEnd":748.7999999523163,"domainLookupStart":748.7999999523163,"fetchStart":748.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":939.1999999880791,"responseEnd":975.5,"responseStart":974.6999999880791,"secureConnectionStart":748.7999999523163}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":250,"responseStart":427,"responseEnd":449,"domLoading":431,"domInteractive":1108,"domContentLoadedEventStart":1108,"domContentLoadedEventEnd":1142,"domComplete":2491,"loadEventStart":2491,"loadEventEnd":2492,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1096.699999988079},{"name":"bigPipe.sidebar-id.end","time":1097.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":1097.699999988079},{"name":"bigPipe.activity-panel-pipe-id.end","time":1100.0999999642372},{"name":"activityTabFullyLoaded","time":1153.199999988079}],"measures":[],"correlationId":"66eac1b84e4efe","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":112,"dbReadsTimeInMs":22,"dbConnsTimeInMs":34,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}