Type:
Bug
Priority:
Blocker
Resolution:
Fixed
Affects Version/s:
None
Environment:
10.11.10
Compiled with debugging
Trace after crash with: mariabackup.alter_copy_race
It always crashes when I run the above test case.
The result from queries just before the failure was:
# xtrabackup backup
CREATE TABLE t1(i int ) ENGINE=InnoDB;
INSERT into t1 values (1);
connect con2, localhost, root,,;
connection con2;
set lock_wait_timeout=1;
SET debug_sync= 'copy_data_between_tables_before_reset_backup_lock SIGNAL go WAIT_FOR after_backup_stage_block_ddl' ;
SET debug_sync= 'alter_table_after_temp_table_drop SIGNAL temp_table_dropped' ;
SET debug_sync= 'now WAIT_FOR after_backup_stage_start' ; ALTER TABLE test.t1 FORCE , algorithm=COPY;|
connection default ;
Backtrace:
Thread 1 (Thread 0x7ffff11fd700 (LWP 7099)):
#0 0x00007ffff6453d2b in raise () from /lib64/libc.so.6
#1 0x00007ffff6455394 in abort () from /lib64/libc.so.6
#2 0x000000000172677e in ut_dbg_assertion_failed (expr=0x19ab8ef "opt_no_lock", file=0x19ab2e8 "/my/maria-10.11/extra/mariabackup/xtrabackup.cc", line=1214) at /my/maria-10.11/storage/innobase/ut/ut0dbg.cc:60
#3 0x000000000089aa9f in backup_file_op_fail (space_id=6, type=144, name=0x7ffff120e016 "", len=28, new_name=0x0, new_len=0) at /my/maria-10.11/extra/mariabackup/xtrabackup.cc:1214
#4 0x000000000158b23e in recv_sys_t::parse<recv_buf, (recv_sys_t::store)1> (this=0x260fc80 <recv_sys>, l=..., if_exists=false) at /my/maria-10.11/storage/innobase/log/log0recv.cc:3072
#5 0x00000000015869c8 in recv_sys_t::parse_mtr<(recv_sys_t::store)1> (if_exists=false) at /my/maria-10.11/storage/innobase/log/log0recv.cc:3115
#6 0x00000000015869e2 in recv_sys_t::parse_mmap<(recv_sys_t::store)1> (if_exists=false) at /my/maria-10.11/storage/innobase/log/log0recv.cc:3127
#7 0x000000000089e9ea in xtrabackup_copy_mmap_logfile () at /my/maria-10.11/extra/mariabackup/xtrabackup.cc:3423
#8 0x000000000089edee in xtrabackup_copy_logfile () at /my/maria-10.11/extra/mariabackup/xtrabackup.cc:3487
#9 0x000000000089f88f in log_copying_thread () at /my/maria-10.11/extra/mariabackup/xtrabackup.cc:3654
#10 0x00000000008b7e80 in std::__invoke_impl<void, void (*)()> (__f=@0x3299698: 0x89f862 <log_copying_thread()>) at /usr/include/c++/7/bits/invoke.h:60
#11 0x00000000008b311a in std::__invoke<void (*)()> (__fn=@0x3299698: 0x89f862 <log_copying_thread()>) at /usr/include/c++/7/bits/invoke.h:95
#12 0x00000000008c79f2 in std::thread::_Invoker<std::tuple<void (*)()> >::_M_invoke<0ul> (this=0x3299698) at /usr/include/c++/7/thread:234
#13 0x00000000008c79c3 in std::thread::_Invoker<std::tuple<void (*)()> >::operator() (this=0x3299698) at /usr/include/c++/7/thread:243
#14 0x00000000008c79a2 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (*)()> > >::_M_run (this=0x3299690) at /usr/include/c++/7/thread:186
#15 0x00007ffff609f713 in ?? () from /usr/lib64/libstdc++.so.6
#16 0x00007ffff75256ea in start_thread () from /lib64/libpthread.so.0
#17 0x00007ffff652150f in clone () from /lib64/libc.so.6
The code where it fails:
1213
if (fail) {
1214
ut_a(opt_no_lock);
1215
die( "DDL operation detected in the late phase of backup."
1216
"Backup is inconsistent. Remove --no-lock option to fix." );
I checked with gdb that opt_no_lock == 0
'type' in backup_file_op_fail(uint32_t space_id, int type..) is 144 == FILE_DELETE
spacename = "mysql/innodb_table_stats"
Transition
Time In Source Status
Execution Times
Open
Closed
1d 4h 58m
1
{"report":{"fcp":1779.5999999046326,"ttfb":219.7999997138977,"pageVisibility":"visible","entityId":131781,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"aab17ad8-7128-4b09-8c9a-4bf95a1e6c80","navigationType":0,"readyForUser":1951.3999996185303,"redirectCount":0,"resourceLoadedEnd":2137.7999997138977,"resourceLoadedStart":229.69999980926514,"resourceTiming":[{"duration":840.8000001907349,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":229.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":229.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1070.5,"responseStart":0,"secureConnectionStart":0},{"duration":840.5999999046326,"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":230.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":230.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1070.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":870.2000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":230.2999997138977,"connectEnd":230.2999997138977,"connectStart":230.2999997138977,"domainLookupEnd":230.2999997138977,"domainLookupStart":230.2999997138977,"fetchStart":230.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":230.2999997138977,"responseEnd":1100.5,"responseStart":1100.5,"secureConnectionStart":230.2999997138977},{"duration":1092.9000000953674,"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":230.39999961853027,"connectEnd":230.39999961853027,"connectStart":230.39999961853027,"domainLookupEnd":230.39999961853027,"domainLookupStart":230.39999961853027,"fetchStart":230.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":230.39999961853027,"responseEnd":1323.2999997138977,"responseStart":1323.2999997138977,"secureConnectionStart":230.39999961853027},{"duration":1096.6999998092651,"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":230.69999980926514,"connectEnd":230.69999980926514,"connectStart":230.69999980926514,"domainLookupEnd":230.69999980926514,"domainLookupStart":230.69999980926514,"fetchStart":230.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":230.69999980926514,"responseEnd":1327.3999996185303,"responseStart":1327.3999996185303,"secureConnectionStart":230.69999980926514},{"duration":1098.3000001907349,"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":230.89999961853027,"connectEnd":230.89999961853027,"connectStart":230.89999961853027,"domainLookupEnd":230.89999961853027,"domainLookupStart":230.89999961853027,"fetchStart":230.89999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":230.89999961853027,"responseEnd":1329.1999998092651,"responseStart":1329.1999998092651,"secureConnectionStart":230.89999961853027},{"duration":1099.1999998092651,"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":231.09999990463257,"connectEnd":231.09999990463257,"connectStart":231.09999990463257,"domainLookupEnd":231.09999990463257,"domainLookupStart":231.09999990463257,"fetchStart":231.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":231.09999990463257,"responseEnd":1330.2999997138977,"responseStart":1330.2999997138977,"secureConnectionStart":231.09999990463257},{"duration":1114.7000002861023,"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":231.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":231.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1346,"responseStart":0,"secureConnectionStart":0},{"duration":1100.1000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":231.39999961853027,"connectEnd":231.39999961853027,"connectStart":231.39999961853027,"domainLookupEnd":231.39999961853027,"domainLookupStart":231.39999961853027,"fetchStart":231.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":231.39999961853027,"responseEnd":1331.5,"responseStart":1331.5,"secureConnectionStart":231.39999961853027},{"duration":1114.5999999046326,"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":231.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":231.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1346.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":1100.8000001907349,"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":231.7999997138977,"connectEnd":231.7999997138977,"connectStart":231.7999997138977,"domainLookupEnd":231.7999997138977,"domainLookupStart":231.7999997138977,"fetchStart":231.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":231.7999997138977,"responseEnd":1332.5999999046326,"responseStart":1332.5999999046326,"secureConnectionStart":231.7999997138977},{"duration":1295.6999998092651,"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":232.59999990463257,"connectEnd":232.59999990463257,"connectStart":232.59999990463257,"domainLookupEnd":232.59999990463257,"domainLookupStart":232.59999990463257,"fetchStart":232.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":232.59999990463257,"responseEnd":1528.2999997138977,"responseStart":1528.2999997138977,"secureConnectionStart":232.59999990463257},{"duration":1892,"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":232.7999997138977,"connectEnd":232.7999997138977,"connectStart":232.7999997138977,"domainLookupEnd":232.7999997138977,"domainLookupStart":232.7999997138977,"fetchStart":232.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":232.7999997138977,"responseEnd":2124.7999997138977,"responseStart":2124.7999997138977,"secureConnectionStart":232.7999997138977},{"duration":224,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1303.1999998092651,"connectEnd":1303.1999998092651,"connectStart":1303.1999998092651,"domainLookupEnd":1303.1999998092651,"domainLookupStart":1303.1999998092651,"fetchStart":1303.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":1303.1999998092651,"responseEnd":1527.1999998092651,"responseStart":1527.1999998092651,"secureConnectionStart":1303.1999998092651},{"duration":480.90000009536743,"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":1644.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1644.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2125.699999809265,"responseStart":0,"secureConnectionStart":0},{"duration":491.19999980926514,"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":1646.5999999046326,"connectEnd":1646.5999999046326,"connectStart":1646.5999999046326,"domainLookupEnd":1646.5999999046326,"domainLookupStart":1646.5999999046326,"fetchStart":1646.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1646.5999999046326,"responseEnd":2137.7999997138977,"responseStart":2137.7999997138977,"secureConnectionStart":1646.5999999046326},{"duration":570.2999997138977,"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":1647,"connectEnd":1647,"connectStart":1647,"domainLookupEnd":1647,"domainLookupStart":1647,"fetchStart":1647,"redirectEnd":0,"redirectStart":0,"requestStart":1647,"responseEnd":2217.2999997138977,"responseStart":2217.2999997138977,"secureConnectionStart":1647}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":53,"responseStart":220,"responseEnd":225,"domLoading":227,"domInteractive":2161,"domContentLoadedEventStart":2161,"domContentLoadedEventEnd":2247,"domComplete":3020,"loadEventStart":3021,"loadEventEnd":3021,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2129.7999997138977},{"name":"bigPipe.sidebar-id.end","time":2130.699999809265},{"name":"bigPipe.activity-panel-pipe-id.start","time":2130.8999996185303},{"name":"bigPipe.activity-panel-pipe-id.end","time":2131.699999809265},{"name":"activityTabFullyLoaded","time":2268.8999996185303}],"measures":[],"correlationId":"89230f12ebe515","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":100,"dbReadsTimeInMs":12,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}