The attached copy of a data directory data_copy.tar.bz2
is from a run where according to rr replay the server had been executing ALTER TABLE when it was killed:
10.6 6fbf978eec4506eb46737ac4da00ea04403ae855
|
#11 0x000055b80bc9831d in ha_innobase::write_row (this=0x61d000a582b8, record=0x61a0004e4eb8 "\b\376\t\001") at /data/Server/bb-10.6-MDEV-25062/storage/innobase/handler/ha_innodb.cc:7663
|
#12 0x000055b80b3a7320 in handler::ha_write_row (this=0x61d000a582b8, buf=0x61a0004e4eb8 "\b\376\t\001") at /data/Server/bb-10.6-MDEV-25062/sql/handler.cc:7240
|
#13 0x000055b80ae631e4 in copy_data_between_tables (thd=0x62b0000cb218, from=0x61900042fe98, to=0x619000178998, create=..., ignore=false, order_num=0, order=0x0, copied=0x371c790da790, deleted=0x371c790da7b0,
|
keys_onoff=Alter_info::LEAVE_AS_IS, alter_ctx=0x371c790dc120) at /data/Server/bb-10.6-MDEV-25062/sql/sql_table.cc:11090
|
#14 0x000055b80ae5d746 in mysql_alter_table (thd=0x62b0000cb218, new_db=0x62b0000cfc28, new_name=0x62b0000d0040, create_info=0x371c790dd5d0, table_list=0x62b0000d23c8, alter_info=0x371c790dd4a0, order_num=0,
|
order=0x0, ignore=false, if_exists=false) at /data/Server/bb-10.6-MDEV-25062/sql/sql_table.cc:10353
|
#15 0x000055b80afe8a77 in Sql_cmd_alter_table::execute (this=0x62b0000d2bf0, thd=0x62b0000cb218) at /data/Server/bb-10.6-MDEV-25062/sql/sql_alter.cc:550
|
#16 0x000055b80abf14a0 in mysql_execute_command (thd=0x62b0000cb218) at /data/Server/bb-10.6-MDEV-25062/sql/sql_parse.cc:5983
|
#17 0x000055b80abfd96d in mysql_parse (thd=0x62b0000cb218, rawbuf=0x62b0000d2238 "ALTER TABLE t3 ADD COLUMN IF NOT EXISTS col2_copy INT /* E_R Thread1 QNO 5315 CON_ID 59 */", length=91,
|
parser_state=0x371c790deb20) at /data/Server/bb-10.6-MDEV-25062/sql/sql_parse.cc:8016
|
The server was killed in the middle of this, and on accessing the table t3 we would get into trouble.
ssh pluto
|
rr replay /data/Results/1623345023/TBR-793/dev/shm/vardir/1623345023/59/1/rr/mysqld-2
|
This would crash while accessing the table t3 due to an invalid BLOB pointer that had been left behind due to the SIGKILL.
It should be sufficient to start up the server on the copy of the data directory:
sql/mariadbd --datadir /dev/shm/data_copy
|
CHECK TABLE t3 will report a number of row count mismatch to the client.
The correct recovery would have been to drop the incomplete #sql-alter- table. What happens here instead is that the valid table t3 was dropped and the invalid table was renamed to t3.
Transition |
Time In Source Status |
Execution Times |
Open |
|
In Progress |
|
1d 3h 45m
|
1
|
In Progress |
|
Closed |
|
17h 37m
|
1
|
{"report":{"fcp":1099.4000005722046,"ttfb":189.70000076293945,"pageVisibility":"visible","entityId":100453,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"5529136f-ab27-4df7-8e65-0b49b704b343","navigationType":0,"readyForUser":1207.6000003814697,"redirectCount":0,"resourceLoadedEnd":2082.9000005722046,"resourceLoadedStart":222.60000038146973,"resourceTiming":[{"duration":273.80000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":222.60000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":222.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":496.4000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":274.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":222.9000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":222.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":497.4000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":289.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":223.10000038146973,"connectEnd":223.10000038146973,"connectStart":223.10000038146973,"domainLookupEnd":223.10000038146973,"domainLookupStart":223.10000038146973,"fetchStart":223.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":223.10000038146973,"responseEnd":512.9000005722046,"responseStart":512.9000005722046,"secureConnectionStart":223.10000038146973},{"duration":436.79999923706055,"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":223.20000076293945,"connectEnd":223.20000076293945,"connectStart":223.20000076293945,"domainLookupEnd":223.20000076293945,"domainLookupStart":223.20000076293945,"fetchStart":223.20000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":223.20000076293945,"responseEnd":660,"responseStart":660,"secureConnectionStart":223.20000076293945},{"duration":474.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":223.60000038146973,"connectEnd":223.60000038146973,"connectStart":223.60000038146973,"domainLookupEnd":223.60000038146973,"domainLookupStart":223.60000038146973,"fetchStart":223.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":223.60000038146973,"responseEnd":698.4000005722046,"responseStart":698.4000005722046,"secureConnectionStart":223.60000038146973},{"duration":475.8999996185303,"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":223.70000076293945,"connectEnd":223.70000076293945,"connectStart":223.70000076293945,"domainLookupEnd":223.70000076293945,"domainLookupStart":223.70000076293945,"fetchStart":223.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":223.70000076293945,"responseEnd":699.6000003814697,"responseStart":699.6000003814697,"secureConnectionStart":223.70000076293945},{"duration":476.0999994277954,"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":223.9000005722046,"connectEnd":223.9000005722046,"connectStart":223.9000005722046,"domainLookupEnd":223.9000005722046,"domainLookupStart":223.9000005722046,"fetchStart":223.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":223.9000005722046,"responseEnd":700,"responseStart":700,"secureConnectionStart":223.9000005722046},{"duration":506.9000005722046,"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":224,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":224,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":730.9000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":476.29999923706055,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":224.20000076293945,"connectEnd":224.20000076293945,"connectStart":224.20000076293945,"domainLookupEnd":224.20000076293945,"domainLookupStart":224.20000076293945,"fetchStart":224.20000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":224.20000076293945,"responseEnd":700.5,"responseStart":700.5,"secureConnectionStart":224.20000076293945},{"duration":506.9000005722046,"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":224.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":224.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":731.2000007629395,"responseStart":0,"secureConnectionStart":0},{"duration":477.4000005722046,"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":224.5,"connectEnd":224.5,"connectStart":224.5,"domainLookupEnd":224.5,"domainLookupStart":224.5,"fetchStart":224.5,"redirectEnd":0,"redirectStart":0,"requestStart":224.5,"responseEnd":701.9000005722046,"responseStart":701.9000005722046,"secureConnectionStart":224.5},{"duration":587.6000003814697,"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":225.60000038146973,"connectEnd":225.60000038146973,"connectStart":225.60000038146973,"domainLookupEnd":225.60000038146973,"domainLookupStart":225.60000038146973,"fetchStart":225.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":225.60000038146973,"responseEnd":813.2000007629395,"responseStart":813.2000007629395,"secureConnectionStart":225.60000038146973},{"duration":1847.1999998092651,"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":225.80000019073486,"connectEnd":225.80000019073486,"connectStart":225.80000019073486,"domainLookupEnd":225.80000019073486,"domainLookupStart":225.80000019073486,"fetchStart":225.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":225.80000019073486,"responseEnd":2073,"responseStart":2072.9000005722046,"secureConnectionStart":225.80000019073486},{"duration":72.59999942779541,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":740.9000005722046,"connectEnd":740.9000005722046,"connectStart":740.9000005722046,"domainLookupEnd":740.9000005722046,"domainLookupStart":740.9000005722046,"fetchStart":740.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":740.9000005722046,"responseEnd":813.5,"responseStart":813.5,"secureConnectionStart":740.9000005722046},{"duration":1054.6999998092651,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/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&whisper-enabled=true","startTime":1019.2000007629395,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1019.2000007629395,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2073.9000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":1053.6000003814697,"initiatorType":"link","name":"https://jira.mariadb.org/s/50bc9be5bfead1a25e72c1a9338c94f6-CDN/lu2cib/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/css/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1020.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1020.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2074.2000007629395,"responseStart":0,"secureConnectionStart":0},{"duration":1053.6000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/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&whisper-enabled=true","startTime":1022,"connectEnd":1022,"connectStart":1022,"domainLookupEnd":1022,"domainLookupStart":1022,"fetchStart":1022,"redirectEnd":0,"redirectStart":0,"requestStart":1022,"responseEnd":2075.6000003814697,"responseStart":2075.5,"secureConnectionStart":1022},{"duration":1060.1000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/s/e0bf5781d46ea69fb123572974cf39de-CDN/lu2cib/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/js/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":1022.8000001907349,"connectEnd":1022.8000001907349,"connectStart":1022.8000001907349,"domainLookupEnd":1022.8000001907349,"domainLookupStart":1022.8000001907349,"fetchStart":1022.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1022.8000001907349,"responseEnd":2082.9000005722046,"responseStart":2082.9000005722046,"secureConnectionStart":1022.8000001907349},{"duration":1059,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/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&whisper-enabled=true","startTime":1022.4000005722046,"connectEnd":1022.4000005722046,"connectStart":1022.4000005722046,"domainLookupEnd":1022.4000005722046,"domainLookupStart":1022.4000005722046,"fetchStart":1022.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":1022.4000005722046,"responseEnd":2081.4000005722046,"responseStart":2081.4000005722046,"secureConnectionStart":1022.4000005722046}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":18,"responseStart":190,"responseEnd":195,"domLoading":220,"domInteractive":2101,"domContentLoadedEventStart":2101,"domContentLoadedEventEnd":2142,"domComplete":3404,"loadEventStart":3404,"loadEventEnd":3405,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2078},{"name":"bigPipe.sidebar-id.end","time":2078.7000007629395},{"name":"bigPipe.activity-panel-pipe-id.start","time":2078.9000005722046},{"name":"bigPipe.activity-panel-pipe-id.end","time":2079.9000005722046},{"name":"activityTabFullyLoaded","time":2158.300000190735}],"measures":[],"correlationId":"cd3f1bfa2f7b74","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":111,"dbReadsTimeInMs":19,"dbConnsTimeInMs":28,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}