Note: Unfortunately I can't check if the problem is reproducible on 10.0, because the binlog uses syntax introduced in 10.1 with table encryption.
Stack trace is from 10.1 commit 8c54182e + patch http://lists.askmonty.org/pipermail/commits/2015-May/007819.html ; the binlog was produced on 10.1 commit 2f25c653 + the same patch + patch for MDEV-8045.
sql/handler.cc:2579: int handler::ha_close(): Assertion `m_lock_type == 2' failed.
|
150512 17:14:41 [ERROR] mysqld got signal 6 ;
|
|
#6 0x00007f0d3fb15311 in *__GI___assert_fail (assertion=0x7f0d42e723ce "m_lock_type == 2", file=<optimized out>, line=2579, function=0x7f0d42e76170 "int handler::ha_close()") at assert.c:81
|
#7 0x00007f0d4267c967 in handler::ha_close (this=0x7f0d14cae888) at 10.1-patched/sql/handler.cc:2579
|
#8 0x00007f0d425344e4 in closefrm (table=0x7f0d0e82c070, free_share=false) at 10.1-patched/sql/table.cc:3012
|
#9 0x00007f0d423e08b0 in close_temporary (table=0x7f0d0e82c070, free_share=true, delete_table=false) at 10.1-patched/sql/sql_base.cc:1812
|
#10 0x00007f0d42566527 in Relay_log_info::close_temporary_tables (this=0x7f0d2d488c40) at 10.1-patched/sql/rpl_rli.cc:1069
|
#11 0x00007f0d4276d5fa in Start_log_event_v3::do_apply_event (this=0x7f0d1409c1b0, rgi=0x7f0d14020800) at 10.1-patched/sql/log_event.cc:4728
|
#12 0x00007f0d4276e217 in Format_description_log_event::do_apply_event (this=0x7f0d1409c1b0, rgi=0x7f0d14020800) at 10.1-patched/sql/log_event.cc:5103
|
#13 0x00007f0d423b3a3a in Log_event::apply_event (this=0x7f0d1409c1b0, rgi=0x7f0d14020800) at 10.1-patched/sql/log_event.h:1347
|
#14 0x00007f0d423a95af in apply_event_and_update_pos (ev=0x7f0d1409c1b0, thd=0x7f0d14049070, rgi=0x7f0d14020800, rpt=0x0) at 10.1-patched/sql/slave.cc:3274
|
#15 0x00007f0d425e0843 in rpt_handle_event (qev=0x7f0d146d6570, rpt=0x0) at 10.1-patched/sql/rpl_parallel.cc:49
|
#16 0x00007f0d425e635c in rpl_parallel::do_event (this=0x7f0d2d48bf40, serial_rgi=0x7f0d14020800, ev=0x7f0d1409c1b0, event_size=244) at 10.1-patched/sql/rpl_parallel.cc:2357
|
#17 0x00007f0d423a9bbf in exec_relay_log_event (thd=0x7f0d14049070, rli=0x7f0d2d488c40, serial_rgi=0x7f0d14020800) at 10.1-patched/sql/slave.cc:3525
|
#18 0x00007f0d423ad0d0 in handle_slave_sql (arg=0x7f0d2d487000) at 10.1-patched/sql/slave.cc:4677
|
#19 0x00007f0d41b30b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
|
#20 0x00007f0d3fbc595d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
|
To reproduce:
- start master with all default options + --log-bin=mysql-bin --server-id=1, with the attached mysql-bin.* files in the datadir;
- start slave with all default options + --server-id=2 --plugin-load-add=file_key_management.so --file_key_management_filename=<your basedir>/mysql-test/std_data/keys.txt --slave_parallel_threads=8;
- set up replication (either old-fashioned or GTID, doesn't matter);
- wait.
{"report":{"fcp":1064.4000000953674,"ttfb":323.30000019073486,"pageVisibility":"visible","entityId":51324,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"f621968d-809a-48d7-96ab-56eb45f4e7ca","navigationType":0,"readyForUser":1144.9000000953674,"redirectCount":0,"resourceLoadedEnd":1008,"resourceLoadedStart":328.6000003814697,"resourceTiming":[{"duration":241.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":328.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":328.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":570.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":241.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":328.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":328.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":570.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":251.2999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":329.1000003814697,"connectEnd":329.1000003814697,"connectStart":329.1000003814697,"domainLookupEnd":329.1000003814697,"domainLookupStart":329.1000003814697,"fetchStart":329.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":329.1000003814697,"responseEnd":580.4000000953674,"responseStart":580.4000000953674,"secureConnectionStart":329.1000003814697},{"duration":277.7999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":329.2000002861023,"connectEnd":329.2000002861023,"connectStart":329.2000002861023,"domainLookupEnd":329.2000002861023,"domainLookupStart":329.2000002861023,"fetchStart":329.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":329.2000002861023,"responseEnd":607,"responseStart":607,"secureConnectionStart":329.2000002861023},{"duration":282.80000019073486,"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":329.40000009536743,"connectEnd":329.40000009536743,"connectStart":329.40000009536743,"domainLookupEnd":329.40000009536743,"domainLookupStart":329.40000009536743,"fetchStart":329.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":329.40000009536743,"responseEnd":612.2000002861023,"responseStart":612.2000002861023,"secureConnectionStart":329.40000009536743},{"duration":283.09999990463257,"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":329.6000003814697,"connectEnd":329.6000003814697,"connectStart":329.6000003814697,"domainLookupEnd":329.6000003814697,"domainLookupStart":329.6000003814697,"fetchStart":329.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":329.6000003814697,"responseEnd":612.7000002861023,"responseStart":612.7000002861023,"secureConnectionStart":329.6000003814697},{"duration":283.40000009536743,"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":329.7000002861023,"connectEnd":329.7000002861023,"connectStart":329.7000002861023,"domainLookupEnd":329.7000002861023,"domainLookupStart":329.7000002861023,"fetchStart":329.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":329.7000002861023,"responseEnd":613.1000003814697,"responseStart":613.1000003814697,"secureConnectionStart":329.7000002861023},{"duration":284.40000009536743,"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":329.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":329.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":614.2000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":283.6000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":330,"connectEnd":330,"connectStart":330,"domainLookupEnd":330,"domainLookupStart":330,"fetchStart":330,"redirectEnd":0,"redirectStart":0,"requestStart":330,"responseEnd":613.6000003814697,"responseStart":613.6000003814697,"secureConnectionStart":330},{"duration":284.09999990463257,"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":330.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":330.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":614.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":284.09999990463257,"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":330.30000019073486,"connectEnd":330.30000019073486,"connectStart":330.30000019073486,"domainLookupEnd":330.30000019073486,"domainLookupStart":330.30000019073486,"fetchStart":330.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":330.30000019073486,"responseEnd":614.4000000953674,"responseStart":614.4000000953674,"secureConnectionStart":330.30000019073486},{"duration":390.5,"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":331.1000003814697,"connectEnd":331.1000003814697,"connectStart":331.1000003814697,"domainLookupEnd":331.1000003814697,"domainLookupStart":331.1000003814697,"fetchStart":331.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":331.1000003814697,"responseEnd":721.6000003814697,"responseStart":721.6000003814697,"secureConnectionStart":331.1000003814697},{"duration":672.6999998092651,"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":335.30000019073486,"connectEnd":335.30000019073486,"connectStart":335.30000019073486,"domainLookupEnd":335.30000019073486,"domainLookupStart":335.30000019073486,"fetchStart":335.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":335.30000019073486,"responseEnd":1008,"responseStart":1008,"secureConnectionStart":335.30000019073486},{"duration":376.6000003814697,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":850,"connectEnd":850,"connectStart":850,"domainLookupEnd":850,"domainLookupStart":850,"fetchStart":850,"redirectEnd":0,"redirectStart":0,"requestStart":850,"responseEnd":1226.6000003814697,"responseStart":1226.6000003814697,"secureConnectionStart":850},{"duration":265.40000009536743,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1040.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1040.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1305.9000000953674,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":156,"responseStart":324,"responseEnd":327,"domLoading":327,"domInteractive":1257,"domContentLoadedEventStart":1257,"domContentLoadedEventEnd":1302,"domComplete":2213,"loadEventStart":2213,"loadEventEnd":2214,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1183.9000000953674},{"name":"bigPipe.sidebar-id.end","time":1184.6000003814697},{"name":"bigPipe.activity-panel-pipe-id.start","time":1184.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1188.9000000953674},{"name":"activityTabFullyLoaded","time":1316.9000000953674}],"measures":[],"correlationId":"7e7fea3d20ec82","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":106,"dbReadsTimeInMs":13,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}