Stack trace from bb-10.1-jan-encryption 549ed8c69b29050135bcdd045870dccd56b46d3b
Thread 2 (Thread 0x7effe0960700 (LWP 11513)):
#0 0x00007effde47b453 in select () at ../sysdeps/unix/syscall-template.S:82
#1 0x00007effe139ed6f in os_thread_sleep (tm=100000) at /home/elenst/git/bb-10.1-jan-encryption/storage/xtradb/os/os0thread.cc:285
#2 0x00007effe1377aea in logs_empty_and_mark_files_at_shutdown () at /home/elenst/git/bb-10.1-jan-encryption/storage/xtradb/log/log0log.cc:3557
#3 0x00007effe146932b in innobase_shutdown_for_mysql () at /home/elenst/git/bb-10.1-jan-encryption/storage/xtradb/srv/srv0start.cc:3140
#4 0x00007effe12fd9c4 in innobase_end (hton=0x7effdd82e270, type=HA_PANIC_CLOSE) at /home/elenst/git/bb-10.1-jan-encryption/storage/xtradb/handler/ha_innodb.cc:4189
#5 0x00007effe114b5de in ha_finalize_handlerton (plugin=0x7effdd9446e8) at /home/elenst/git/bb-10.1-jan-encryption/sql/handler.cc:452
#6 0x00007effe0f2cb16 in plugin_deinitialize (plugin=0x7effdd9446e8, ref_check=true) at /home/elenst/git/bb-10.1-jan-encryption/sql/sql_plugin.cc:1209
#7 0x00007effe0f2cf59 in reap_plugins () at /home/elenst/git/bb-10.1-jan-encryption/sql/sql_plugin.cc:1287
#8 0x00007effe0f2edec in plugin_shutdown () at /home/elenst/git/bb-10.1-jan-encryption/sql/sql_plugin.cc:1934
#9 0x00007effe0e48e11 in clean_up (print_message=true) at /home/elenst/git/bb-10.1-jan-encryption/sql/mysqld.cc:2103
#10 0x00007effe0e48a48 in unireg_end () at /home/elenst/git/bb-10.1-jan-encryption/sql/mysqld.cc:1993
#11 0x00007effe0e4896a in kill_server (sig_ptr=0x0) at /home/elenst/git/bb-10.1-jan-encryption/sql/mysqld.cc:1921
#12 0x00007effe0e48987 in kill_server_thread (arg=0x7effe09f1dd0) at /home/elenst/git/bb-10.1-jan-encryption/sql/mysqld.cc:1944
#13 0x00007effe05f5b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#14 0x00007effde48195d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#15 0x0000000000000000 in ?? ()
Thread 1 (Thread 0x7effe0a06760 (LWP 11470)):
#0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1 0x00007effe17a612a in safe_cond_wait (cond=0x7effe2246b20, mp=0x7effe22458e0, file=0x7effe183dda0 "/home/elenst/git/bb-10.1-jan-encryption/include/mysql/psi/mysql_thread.h", line=1165) at /home/elenst/git/bb-10.1-jan-encryption/mysys/thr_mutex.c:493
#2 0x00007effe0e45c0c in inline_mysql_cond_wait (that=0x7effe2246b20, mutex=0x7effe22458e0, src_file=0x7effe183fa60 "/home/elenst/git/bb-10.1-jan-encryption/sql/mysqld.cc", src_line=5920) at /home/elenst/git/bb-10.1-jan-encryption/include/mysql/psi/mysql_thread.h:1165
#3 0x00007effe0e50259 in mysqld_main (argc=21, argv=0x7effdd81e8c0) at /home/elenst/git/bb-10.1-jan-encryption/sql/mysqld.cc:5920
#4 0x00007effe0e45530 in main (argc=11, argv=0x7ffc62c34e08) at /home/elenst/git/bb-10.1-jan-encryption/sql/main.cc:25
I remember you asked me about some bug, whether it was hanging or just slow.
If it was about this one, I double-checked manually, without MTR, but otherwise the same scenario. I gave it 5 minutes and it still did not shutdown (normally takes ~2 seconds), so I guess it really hangs.
~/git/10.1$ tail data/log.err
2015-09-27 0:30:12 140142062585600 [ERROR] InnoDB: However key management plugin or used key_id 1 is not found or used encryption algorithm or method does not match.
2015-09-27 0:30:12 140142062585600 [ERROR] InnoDB: Marking tablespace as missing. You may drop this table or install correct key management plugin and key file.
2015-09-27 0:30:12 140142062585600 [ERROR] InnoDB: Block in space_id 4 in file test/t1 encrypted.
2015-09-27 0:30:12 140142062585600 [ERROR] InnoDB: However key management plugin or used key_id 1 is not found or used encryption algorithm or method does not match.
2015-09-27 0:30:12 140142062585600 [ERROR] InnoDB: Marking tablespace as missing. You may drop this table or install correct key management plugin and key file.
2015-09-27 0:30:18 140142062286592 [Note] /home/elenst/git/10.1/sql/mysqld: Normal shutdown
Elena Stepanova
added a comment - - edited jplindst ,
I remember you asked me about some bug, whether it was hanging or just slow.
If it was about this one, I double-checked manually, without MTR, but otherwise the same scenario. I gave it 5 minutes and it still did not shutdown (normally takes ~2 seconds), so I guess it really hangs.
~/git/10.1$ tail data/log.err
2015-09-27 0:30:12 140142062585600 [ERROR] InnoDB: However key management plugin or used key_id 1 is not found or used encryption algorithm or method does not match.
2015-09-27 0:30:12 140142062585600 [ERROR] InnoDB: Marking tablespace as missing. You may drop this table or install correct key management plugin and key file.
2015-09-27 0:30:12 140142062585600 [ERROR] InnoDB: Block in space_id 4 in file test/t1 encrypted.
2015-09-27 0:30:12 140142062585600 [ERROR] InnoDB: However key management plugin or used key_id 1 is not found or used encryption algorithm or method does not match.
2015-09-27 0:30:12 140142062585600 [ERROR] InnoDB: Marking tablespace as missing. You may drop this table or install correct key management plugin and key file.
2015-09-27 0:30:18 140142062286592 [Note] /home/elenst/git/10.1/sql/mysqld: Normal shutdown
2015-09-27 0:30:18 140142062286592 [Note] Event Scheduler: Purging the queue. 0 events
2015-09-27 0:30:18 140141314168576 [Note] InnoDB: FTS optimize thread exiting.
2015-09-27 0:30:18 140142062286592 [Note] InnoDB: Starting shutdown...
~/git/10.1$ date
Sun Sep 27 00:35:26 MSK 2015
commit 3266216f2c8f90c866b371fbd4a8bf6b0c628996
Author: Jan Lindström <jan.lindstrom@mariadb.com>
Date: Thu Oct 1 08:16:14 2015 +0300
MDEV-8727: Server/InnoDB hangs on shutdown after trying to read an encrypted table with a wrong key
Analysis: When a page is read from encrypted table and page can't be
decrypted because of bad key (or incorrect encryption algorithm or
method) page was incorrectly left on buffer pool.
Fix: Remove page from buffer pool and from pending IO.
Jan Lindström (Inactive)
added a comment - commit 3266216f2c8f90c866b371fbd4a8bf6b0c628996
Author: Jan Lindström <jan.lindstrom@mariadb.com>
Date: Thu Oct 1 08:16:14 2015 +0300
MDEV-8727 : Server/InnoDB hangs on shutdown after trying to read an encrypted table with a wrong key
Analysis: When a page is read from encrypted table and page can't be
decrypted because of bad key (or incorrect encryption algorithm or
method) page was incorrectly left on buffer pool.
Fix: Remove page from buffer pool and from pending IO.
People
Jan Lindström (Inactive)
Elena Stepanova
Votes:
0Vote for this issue
Watchers:
2Start 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":1377.6000003814697,"ttfb":377.6000003814697,"pageVisibility":"visible","entityId":52929,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"5614bde4-1b45-458a-bd5f-37c8d878f718","navigationType":0,"readyForUser":1536.8999996185303,"redirectCount":0,"resourceLoadedEnd":1584.3999996185303,"resourceLoadedStart":383.3999996185303,"resourceTiming":[{"duration":449.70000076293945,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":383.3999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":383.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":833.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":449.79999923706055,"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":383.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":383.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":833.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":472.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":383.8999996185303,"connectEnd":383.8999996185303,"connectStart":383.8999996185303,"domainLookupEnd":383.8999996185303,"domainLookupStart":383.8999996185303,"fetchStart":383.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":383.8999996185303,"responseEnd":856.1999998092651,"responseStart":856.1999998092651,"secureConnectionStart":383.8999996185303},{"duration":586.7999992370605,"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":384.1000003814697,"connectEnd":384.1000003814697,"connectStart":384.1000003814697,"domainLookupEnd":384.1000003814697,"domainLookupStart":384.1000003814697,"fetchStart":384.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":384.1000003814697,"responseEnd":970.8999996185303,"responseStart":970.8999996185303,"secureConnectionStart":384.1000003814697},{"duration":591.3000001907349,"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":384.19999980926514,"connectEnd":384.19999980926514,"connectStart":384.19999980926514,"domainLookupEnd":384.19999980926514,"domainLookupStart":384.19999980926514,"fetchStart":384.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":384.19999980926514,"responseEnd":975.5,"responseStart":975.5,"secureConnectionStart":384.19999980926514},{"duration":591.3999996185303,"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":384.5,"connectEnd":384.5,"connectStart":384.5,"domainLookupEnd":384.5,"domainLookupStart":384.5,"fetchStart":384.5,"redirectEnd":0,"redirectStart":0,"requestStart":384.5,"responseEnd":975.8999996185303,"responseStart":975.8999996185303,"secureConnectionStart":384.5},{"duration":591.6999998092651,"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":384.6000003814697,"connectEnd":384.6000003814697,"connectStart":384.6000003814697,"domainLookupEnd":384.6000003814697,"domainLookupStart":384.6000003814697,"fetchStart":384.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":384.6000003814697,"responseEnd":976.3000001907349,"responseStart":976.3000001907349,"secureConnectionStart":384.6000003814697},{"duration":623.2000007629395,"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":384.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":384.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1008.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":591.9000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":384.8999996185303,"connectEnd":384.8999996185303,"connectStart":384.8999996185303,"domainLookupEnd":384.8999996185303,"domainLookupStart":384.8999996185303,"fetchStart":384.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":384.8999996185303,"responseEnd":976.8000001907349,"responseStart":976.8000001907349,"secureConnectionStart":384.8999996185303},{"duration":623.0999994277954,"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":385.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":385.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1008.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":592.5999994277954,"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":385.30000019073486,"connectEnd":385.30000019073486,"connectStart":385.30000019073486,"domainLookupEnd":385.30000019073486,"domainLookupStart":385.30000019073486,"fetchStart":385.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":385.30000019073486,"responseEnd":977.8999996185303,"responseStart":977.8999996185303,"secureConnectionStart":385.30000019073486},{"duration":749.8000001907349,"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":397.3999996185303,"connectEnd":397.3999996185303,"connectStart":397.3999996185303,"domainLookupEnd":397.3999996185303,"domainLookupStart":397.3999996185303,"fetchStart":397.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":397.3999996185303,"responseEnd":1147.1999998092651,"responseStart":1147.1999998092651,"secureConnectionStart":397.3999996185303},{"duration":1146.3999996185303,"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":397.5,"connectEnd":397.5,"connectStart":397.5,"domainLookupEnd":397.5,"domainLookupStart":397.5,"fetchStart":397.5,"redirectEnd":0,"redirectStart":0,"requestStart":397.5,"responseEnd":1543.8999996185303,"responseStart":1543.8999996185303,"secureConnectionStart":397.5},{"duration":114.60000038146973,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1033,"connectEnd":1033,"connectStart":1033,"domainLookupEnd":1033,"domainLookupStart":1033,"fetchStart":1033,"redirectEnd":0,"redirectStart":0,"requestStart":1033,"responseEnd":1147.6000003814697,"responseStart":1147.6000003814697,"secureConnectionStart":1033},{"duration":281,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bv2/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":1303.3999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1303.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1584.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":355.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/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":1304.5,"connectEnd":1304.5,"connectStart":1304.5,"domainLookupEnd":1304.5,"domainLookupStart":1304.5,"fetchStart":1304.5,"redirectEnd":0,"redirectStart":0,"requestStart":1304.5,"responseEnd":1659.8000001907349,"responseStart":1659.8000001907349,"secureConnectionStart":1304.5},{"duration":358.4000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/s/53a43b6764f587426c7bb9a150184c00-CDN/lu2bv2/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":1304.8999996185303,"connectEnd":1304.8999996185303,"connectStart":1304.8999996185303,"domainLookupEnd":1304.8999996185303,"domainLookupStart":1304.8999996185303,"fetchStart":1304.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":1304.8999996185303,"responseEnd":1663.3000001907349,"responseStart":1663.3000001907349,"secureConnectionStart":1304.8999996185303}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":201,"responseStart":378,"responseEnd":392,"domLoading":382,"domInteractive":1630,"domContentLoadedEventStart":1630,"domContentLoadedEventEnd":1689,"domComplete":2292,"loadEventStart":2292,"loadEventEnd":2292,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1599.1999998092651},{"name":"bigPipe.sidebar-id.end","time":1600},{"name":"bigPipe.activity-panel-pipe-id.start","time":1600.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":1601.8999996185303},{"name":"activityTabFullyLoaded","time":1720.3000001907349}],"measures":[],"correlationId":"52a578ef6c643b","effectiveType":"4g","downlink":9.3,"rtt":0,"serverDuration":90,"dbReadsTimeInMs":10,"dbConnsTimeInMs":16,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
jplindst,
I remember you asked me about some bug, whether it was hanging or just slow.
If it was about this one, I double-checked manually, without MTR, but otherwise the same scenario. I gave it 5 minutes and it still did not shutdown (normally takes ~2 seconds), so I guess it really hangs.
~/git/10.1$ tail data/log.err
2015-09-27 0:30:12 140142062585600 [ERROR] InnoDB: However key management plugin or used key_id 1 is not found or used encryption algorithm or method does not match.
2015-09-27 0:30:12 140142062585600 [ERROR] InnoDB: Marking tablespace as missing. You may drop this table or install correct key management plugin and key file.
2015-09-27 0:30:12 140142062585600 [ERROR] InnoDB: Block in space_id 4 in file test/t1 encrypted.
2015-09-27 0:30:12 140142062585600 [ERROR] InnoDB: However key management plugin or used key_id 1 is not found or used encryption algorithm or method does not match.
2015-09-27 0:30:12 140142062585600 [ERROR] InnoDB: Marking tablespace as missing. You may drop this table or install correct key management plugin and key file.
2015-09-27 0:30:18 140142062286592 [Note] /home/elenst/git/10.1/sql/mysqld: Normal shutdown
2015-09-27 0:30:18 140142062286592 [Note] Event Scheduler: Purging the queue. 0 events
2015-09-27 0:30:18 140141314168576 [Note] InnoDB: FTS optimize thread exiting.
2015-09-27 0:30:18 140142062286592 [Note] InnoDB: Starting shutdown...
~/git/10.1$ date
Sun Sep 27 00:35:26 MSK 2015