Observed new xtrabackup crash during prepare in bb-10.1-wlad-xtrabackup after recent merge (I have strong consideration that it didn't crash in source code from ~December).
InnoDB: Tablespaces for test/test#P#p2 have been found in two places;
|
Location 1: SpaceID: 6 LSN: 0 File: ./test/test#P#p2.ibd
|
Location 2: SpaceID: 6 LSN: 0 File: /home/a/farm/m9-bb-10.1-wlad-xtrabackup/build/mysql-test/var/partitdata/test/test#P#p2.ibd
|
You must delete one of them.
|
170222 9:24:34 [ERROR] mysqld got signal 6 ;
|
...
|
/home/a/farm/m9-bb-10.1-wlad-xtrabackup/build/extra/xtrabackup/xtrabackup(my_print_stacktrace+0x29)[0x55f6d8034149]
|
/home/a/farm/m9-bb-10.1-wlad-xtrabackup/build/extra/xtrabackup/xtrabackup(handle_fatal_signal+0x3ad)[0x55f6d7c1cfed]
|
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11630)[0x7fc71f7e6630]
|
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x9f)[0x7fc71dc767ef]
|
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7fc71dc783ea]
|
/home/a/farm/m9-bb-10.1-wlad-xtrabackup/build/extra/xtrabackup/xtrabackup(+0x847204)[0x55f6d7eb7204]
|
/home/a/farm/m9-bb-10.1-wlad-xtrabackup/build/extra/xtrabackup/xtrabackup(+0x8ce1b4)[0x55f6d7f3e1b4]
|
mysys/stacktrace.c:268(my_print_stacktrace)[0x55f6d7f42d11]
|
sql/signal_handler.cc:168(handle_fatal_signal)[0x55f6d7f437a4]
|
log/log0recv.cc:3088(recv_init_crash_recovery())[0x55f6d7f43e9a]
|
srv/srv0start.cc:2529(innobase_start_or_create_for_mysql())[0x55f6d7fbf3f6]
|
xtrabackup/xtrabackup.cc:1842(innodb_init())[0x55f6d79d857d]
|
xtrabackup/xtrabackup.cc:6336(xtrabackup_prepare_func)[0x55f6d79e4ffc]
|
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7fc71dc613f1]
|
/home/a/farm/m9-bb-10.1-wlad-xtrabackup/build/extra/xtrabackup/xtrabackup(_start+0x2a)[0x55f6d79f893a]
|
Please note that indeed .ibd file exists in both places, just it is probably valid situation as one of places is actual original .ibd referenced by .isl inside backup:
$ find ~/farm/m9-bb-10.1-wlad-xtrabackup/build/mysql-test/var/ | grep p2.i
|
/home/a/farm/m9-bb-10.1-wlad-xtrabackup/build/mysql-test/var/log/xtrabackup.partition_data_external/mysqld.1/data/test/test#P#p2.isl
|
/home/a/farm/m9-bb-10.1-wlad-xtrabackup/build/mysql-test/var/backup/test/test#P#p2.ibd
|
/home/a/farm/m9-bb-10.1-wlad-xtrabackup/build/mysql-test/var/backup/test/test#P#p2.isl
|
/home/a/farm/m9-bb-10.1-wlad-xtrabackup/build/mysql-test/var/partitdata/test/test#P#p2.ibd
|
Test case run with :
perl mysql-test-run.pl --mysqld="--partition" partition_data_external.test
|
$ cat ../mysql-test/suite/xtrabackup/partition_data_external.test
|
let $targetdir=$MYSQLTEST_VARDIR/backup;
|
mkdir $targetdir;
|
mkdir $MYSQLTEST_VARDIR/partitdata;
|
eval CREATE TABLE test (
|
a int(11) DEFAULT NULL
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
PARTITION BY RANGE (a)
|
(PARTITION p0 VALUES LESS THAN (100),
|
PARTITION P1 VALUES LESS THAN (200),
|
PARTITION p2 VALUES LESS THAN (300)
|
DATA DIRECTORY = "$MYSQLTEST_VARDIR/partitdata",
|
PARTITION p3 VALUES LESS THAN (400)
|
DATA DIRECTORY = "$MYSQLTEST_VARDIR/partitdata",
|
PARTITION p4 VALUES LESS THAN MAXVALUE);
|
INSERT INTO test VALUES (1), (101), (201), (301), (401);
|
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$targetdir;
|
exec $XTRABACKUP --prepare --target-dir=$targetdir;
|
DROP TABLE t;
|
rmdir $targetdir;
|
rmdir $MYSQLTEST_VARDIR/partitdata;
|
{"report":{"fcp":1064.1999998092651,"ttfb":306.7999997138977,"pageVisibility":"visible","entityId":60304,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"c7c5661d-a078-4839-933c-c5ae140e8104","navigationType":0,"readyForUser":1154.9000000953674,"redirectCount":0,"resourceLoadedEnd":1212.6999998092651,"resourceLoadedStart":312.19999980926514,"resourceTiming":[{"duration":36.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":312.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":312.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":348.5,"responseStart":0,"secureConnectionStart":0},{"duration":36.799999713897705,"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":312.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":312.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":349.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":91.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":312.69999980926514,"connectEnd":312.69999980926514,"connectStart":312.69999980926514,"domainLookupEnd":312.69999980926514,"domainLookupStart":312.69999980926514,"fetchStart":312.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":312.69999980926514,"responseEnd":404,"responseStart":404,"secureConnectionStart":312.69999980926514},{"duration":381.7000002861023,"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":312.7999997138977,"connectEnd":312.7999997138977,"connectStart":312.7999997138977,"domainLookupEnd":312.7999997138977,"domainLookupStart":312.7999997138977,"fetchStart":312.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":312.7999997138977,"responseEnd":694.5,"responseStart":694.5,"secureConnectionStart":312.7999997138977},{"duration":384.59999990463257,"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":313.09999990463257,"connectEnd":313.09999990463257,"connectStart":313.09999990463257,"domainLookupEnd":313.09999990463257,"domainLookupStart":313.09999990463257,"fetchStart":313.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":313.09999990463257,"responseEnd":697.6999998092651,"responseStart":697.6999998092651,"secureConnectionStart":313.09999990463257},{"duration":384.90000009536743,"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":313.19999980926514,"connectEnd":313.19999980926514,"connectStart":313.19999980926514,"domainLookupEnd":313.19999980926514,"domainLookupStart":313.19999980926514,"fetchStart":313.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":313.19999980926514,"responseEnd":698.0999999046326,"responseStart":698.0999999046326,"secureConnectionStart":313.19999980926514},{"duration":385.09999990463257,"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":313.40000009536743,"connectEnd":313.40000009536743,"connectStart":313.40000009536743,"domainLookupEnd":313.40000009536743,"domainLookupStart":313.40000009536743,"fetchStart":313.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":313.40000009536743,"responseEnd":698.5,"responseStart":698.5,"secureConnectionStart":313.40000009536743},{"duration":386.19999980926514,"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":313.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":313.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":699.7999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":385.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":313.7999997138977,"connectEnd":313.7999997138977,"connectStart":313.7999997138977,"domainLookupEnd":313.7999997138977,"domainLookupStart":313.7999997138977,"fetchStart":313.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":313.7999997138977,"responseEnd":699.0999999046326,"responseStart":699.0999999046326,"secureConnectionStart":313.7999997138977},{"duration":385.90000009536743,"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":314,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":314,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":699.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":385.69999980926514,"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":314,"connectEnd":314,"connectStart":314,"domainLookupEnd":314,"domainLookupStart":314,"fetchStart":314,"redirectEnd":0,"redirectStart":0,"requestStart":314,"responseEnd":699.6999998092651,"responseStart":699.6999998092651,"secureConnectionStart":314},{"duration":683.8000001907349,"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":319.59999990463257,"connectEnd":319.59999990463257,"connectStart":319.59999990463257,"domainLookupEnd":319.59999990463257,"domainLookupStart":319.59999990463257,"fetchStart":319.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":319.59999990463257,"responseEnd":1003.4000000953674,"responseStart":1003.4000000953674,"secureConnectionStart":319.59999990463257},{"duration":671.6000003814697,"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":332.2999997138977,"connectEnd":332.2999997138977,"connectStart":332.2999997138977,"domainLookupEnd":332.2999997138977,"domainLookupStart":332.2999997138977,"fetchStart":332.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":332.2999997138977,"responseEnd":1003.9000000953674,"responseStart":1003.9000000953674,"secureConnectionStart":332.2999997138977},{"duration":334.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":553.5999999046326,"connectEnd":553.5999999046326,"connectStart":553.5999999046326,"domainLookupEnd":553.5999999046326,"domainLookupStart":553.5999999046326,"fetchStart":553.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":553.5999999046326,"responseEnd":888,"responseStart":888,"secureConnectionStart":553.5999999046326},{"duration":53.5,"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":966.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":966.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1019.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":239,"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":967.0999999046326,"connectEnd":967.0999999046326,"connectStart":967.0999999046326,"domainLookupEnd":967.0999999046326,"domainLookupStart":967.0999999046326,"fetchStart":967.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":967.0999999046326,"responseEnd":1206.0999999046326,"responseStart":1206.0999999046326,"secureConnectionStart":967.0999999046326},{"duration":245.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":967.4000000953674,"connectEnd":967.4000000953674,"connectStart":967.4000000953674,"domainLookupEnd":967.4000000953674,"domainLookupStart":967.4000000953674,"fetchStart":967.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":967.4000000953674,"responseEnd":1212.6999998092651,"responseStart":1212.5999999046326,"secureConnectionStart":967.4000000953674},{"duration":262.2999997138977,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1058,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1058,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1320.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":187.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1079.4000000953674,"connectEnd":1079.4000000953674,"connectStart":1079.4000000953674,"domainLookupEnd":1079.4000000953674,"domainLookupStart":1079.4000000953674,"fetchStart":1079.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1079.4000000953674,"responseEnd":1266.5,"responseStart":1266.5,"secureConnectionStart":1079.4000000953674}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":125,"responseStart":306,"responseEnd":332,"domLoading":310,"domInteractive":1246,"domContentLoadedEventStart":1246,"domContentLoadedEventEnd":1311,"domComplete":1452,"loadEventStart":1452,"loadEventEnd":1452,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1202.6999998092651},{"name":"bigPipe.sidebar-id.end","time":1203.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1203.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":1209.5999999046326},{"name":"activityTabFullyLoaded","time":1340.5}],"measures":[],"correlationId":"17cb5f98e683ee","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":113,"dbReadsTimeInMs":13,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Note1 : xtrabackup mtr test suite has been renamed to mariabackup , so need adjust paths above accordingly.
Note2 : stack trace with ha_innodb.so has little more info showing that crash happens in fil_load_single_table_tablespaces:
mysys/stacktrace.c:268(my_print_stacktrace)[0x7f22903a73ea]
fil/fil0fil.cc:5513(fil_load_single_table_tablespaces(unsigned long (*)(char const*, char const*)))[0x56176c1e9204]
log/log0recv.cc:3088(recv_init_crash_recovery())[0x56176c2701b4]
log/log0recv.cc:2898(recv_scan_log_recs(unsigned long, unsigned long, unsigned char const*, unsigned long, unsigned long, unsigned long*, unsigned long*, dberr_t*))[0x56176c274d11]
log/log0recv.cc:3031(recv_group_scan_log_recs(log_group_t*, unsigned long*, unsigned long*, dberr_t*))[0x56176c2757a4]
log/log0recv.cc:3328(recv_recovery_from_checkpoint_start_func(unsigned long, unsigned long, unsigned long, unsigned long))[0x56176c275e9a]
srv/srv0start.cc:2529(innobase_start_or_create_for_mysql())[0x56176c2f13f6]
xtrabackup/xtrabackup.cc:1842(innodb_init())[0x56176bd0a57d]
xtrabackup/xtrabackup.cc:6336(xtrabackup_prepare_func)[0x56176bd16ffc]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7f22903903f1]
/home/a/farm/m9-bb-10.1-wlad-xtrabackup/build/extra/xtrabackup//xtrabackup(_start+0x2a)[0x56176bd2a93a]
Following assert in fil_extend_space_to_desired_size() triggers:
fil_space_t* space = fil_space_get_by_id(space_id);
ut_a(space);