When I use .sh test from https://bugs.launchpad.net/percona-xtrabackup/+bug/1399471 and ignore_builtin_innodb
plugin_load_add=ha_innodb
in my.cnf - I get reliable crash :
InnoDB: Apply batch completed
|
2017-02-08 09:34:38 7f4f19145780 InnoDB: Assertion failure in thread 139977699907456 in file pars0pars.cc line 865
|
InnoDB: Failing assertion: sym_node->table != NULL
|
InnoDB: We intentionally generate a memory trap.
|
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
|
InnoDB: If you get repeated assertion failures or crashes, even
|
InnoDB: immediately after the mysqld startup, there may be
|
InnoDB: corruption in the InnoDB tablespace. Please refer to
|
InnoDB: http://dev.mysql.com/doc/refman/5.6/en/forcing-innodb-recovery.html
|
InnoDB: about forcing recovery.
|
170208 9:34:38 [ERROR] mysqld got signal 6 ;
|
This could be because you hit a bug. It is also possible that this binary
|
or one of the libraries it was linked against is corrupt, improperly built,
|
or misconfigured. This error can also be caused by malfunctioning hardware.
|
|
To report this bug, see https://mariadb.com/kb/en/reporting-bugs
|
|
We will try our best to scrape up some info that will hopefully help
|
diagnose the problem, but since we have already crashed,
|
something is definitely wrong and this may fail.
|
|
Server version: 10.1.21-MariaDB
|
key_buffer_size=0
|
read_buffer_size=131072
|
max_used_connections=0
|
max_threads=1
|
thread_count=0
|
It is possible that mysqld could use up to
|
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 5297 K bytes of memory
|
Hope that's ok; if not, decrease some variables in the equation.
|
|
Thread pointer: 0x0x0
|
Attempting backtrace. You can use the following information to find out
|
where mysqld died. If you see no messages after this, something went
|
terribly wrong...
|
stack_bottom = 0x0 thread_stack 0x48400
|
/farm/m0-bb-10.1-wlad-xtrabackup/build/extra/xtrabackup//xtrabackup(my_print_stacktrace+0x29)[0x55b98f6df519]
|
/farm/m0-bb-10.1-wlad-xtrabackup/build/extra/xtrabackup//xtrabackup(handle_fatal_signal+0x2f5)[0x55b98f2c9395]
|
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7f4f18d23390]
|
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7f4f171b7428]
|
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7f4f171b902a]
|
mysys/stacktrace.c:268(my_print_stacktrace)[0x55b98f612ca6]
|
pars/pars0pars.cc:1282(pars_update_statement(upd_node_t*, sym_node_t*, void*))[0x55b98f614536]
|
xtradb/pars0grm.y:443(yyparse())[0x55b98f6a9bdb]
|
pars/pars0pars.cc:2247(pars_sql(pars_info_t*, char const*))[0x55b98f615be0]
|
que/que0que.cc:1260(que_eval_sql(pars_info_t*, char const*, unsigned long, trx_t*))[0x55b98f619163]
|
row/row0mysql.cc:4957(row_drop_table_for_mysql(char const*, trx_t*, bool, unsigned long, bool))[0x55b98f63e9c9]
|
row/row0mysql.cc:5211(row_mysql_drop_temp_tables())[0x55b98f6402b5]
|
log/log0recv.cc:3611(recv_recovery_rollback_active())[0x55b98f5efb3e]
|
srv/srv0start.cc:2715(innobase_start_or_create_for_mysql())[0x55b98f66a37c]
|
xtrabackup/xtrabackup.cc:1847(innodb_init())[0x55b98f08263a]
|
xtrabackup/xtrabackup.cc:6369(xtrabackup_prepare_func)[0x55b98f08edce]
|
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f4f171a2830]
|
/farm/m0-bb-10.1-wlad-xtrabackup/build/extra/xtrabackup//xtrabackup(_start+0x29)[0x55b98f0a2959]
|
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
|
information that should help you find out what is causing the crash.
|
inc/common.sh: line 102: 2296 Aborted "$@"
|
I couldn't reproduce the same with manual testing nor with 'identical' mtr tests (which i run with "-mysqld=ignore_builtin_innodb --mysqld=-plugin_load_add=ha_innodb" ) like below:
START TRANSACTION;
|
CREATE TEMPORARY TABLE t(id INT) ENGINE=InnoDB;
|
let $targetdir=$MYSQLTEST_VARDIR/tmp/backup;
|
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$targetdir;
|
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --prepare --target-dir=$targetdir;
|
Thus I am still filing this bug to let developer review if XtraDB patches from https://bugs.launchpad.net/percona-xtrabackup/+bug/1399471 should be applied to ha_innodb as well.
{"report":{"fcp":1309.0999999046326,"ttfb":427.90000009536743,"pageVisibility":"visible","entityId":60168,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"09a39ba9-d895-4c73-b737-dd7b87660289","navigationType":0,"readyForUser":1428.4000000953674,"redirectCount":0,"resourceLoadedEnd":1745.7000000476837,"resourceLoadedStart":433,"resourceTiming":[{"duration":281,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":433,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":433,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":714,"responseStart":0,"secureConnectionStart":0},{"duration":282,"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":433.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":433.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":715.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":337.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":433.59999990463257,"connectEnd":433.59999990463257,"connectStart":433.59999990463257,"domainLookupEnd":433.59999990463257,"domainLookupStart":433.59999990463257,"fetchStart":433.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":433.59999990463257,"responseEnd":770.7000000476837,"responseStart":770.7000000476837,"secureConnectionStart":433.59999990463257},{"duration":421.2999999523163,"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":433.7000000476837,"connectEnd":433.7000000476837,"connectStart":433.7000000476837,"domainLookupEnd":433.7000000476837,"domainLookupStart":433.7000000476837,"fetchStart":433.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":433.7000000476837,"responseEnd":855,"responseStart":855,"secureConnectionStart":433.7000000476837},{"duration":425.09999990463257,"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":433.90000009536743,"connectEnd":433.90000009536743,"connectStart":433.90000009536743,"domainLookupEnd":433.90000009536743,"domainLookupStart":433.90000009536743,"fetchStart":433.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":433.90000009536743,"responseEnd":859,"responseStart":859,"secureConnectionStart":433.90000009536743},{"duration":425.7000000476837,"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":434.09999990463257,"connectEnd":434.09999990463257,"connectStart":434.09999990463257,"domainLookupEnd":434.09999990463257,"domainLookupStart":434.09999990463257,"fetchStart":434.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":434.09999990463257,"responseEnd":859.7999999523163,"responseStart":859.7999999523163,"secureConnectionStart":434.09999990463257},{"duration":426.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":434.2000000476837,"connectEnd":434.2000000476837,"connectStart":434.2000000476837,"domainLookupEnd":434.2000000476837,"domainLookupStart":434.2000000476837,"fetchStart":434.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":434.2000000476837,"responseEnd":860.2999999523163,"responseStart":860.2999999523163,"secureConnectionStart":434.2000000476837},{"duration":498.09999990463257,"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":434.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":434.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":932.5,"responseStart":0,"secureConnectionStart":0},{"duration":426.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":434.7000000476837,"connectEnd":434.7000000476837,"connectStart":434.7000000476837,"domainLookupEnd":434.7000000476837,"domainLookupStart":434.7000000476837,"fetchStart":434.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":434.7000000476837,"responseEnd":860.9000000953674,"responseStart":860.9000000953674,"secureConnectionStart":434.7000000476837},{"duration":492.7000000476837,"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":440,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":440,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":932.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":421.39999985694885,"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":440.2000000476837,"connectEnd":440.2000000476837,"connectStart":440.2000000476837,"domainLookupEnd":440.2000000476837,"domainLookupStart":440.2000000476837,"fetchStart":440.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":440.2000000476837,"responseEnd":861.5999999046326,"responseStart":861.5999999046326,"secureConnectionStart":440.2000000476837},{"duration":1190.7000000476837,"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":445.2999999523163,"connectEnd":445.2999999523163,"connectStart":445.2999999523163,"domainLookupEnd":445.2999999523163,"domainLookupStart":445.2999999523163,"fetchStart":445.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":445.2999999523163,"responseEnd":1636,"responseStart":1636,"secureConnectionStart":445.2999999523163},{"duration":1285.4000000953674,"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":460.2999999523163,"connectEnd":460.2999999523163,"connectStart":460.2999999523163,"domainLookupEnd":460.2999999523163,"domainLookupStart":460.2999999523163,"fetchStart":460.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":460.2999999523163,"responseEnd":1745.7000000476837,"responseStart":1745.7000000476837,"secureConnectionStart":460.2999999523163},{"duration":687.8000001907349,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":948.5999999046326,"connectEnd":948.5999999046326,"connectStart":948.5999999046326,"domainLookupEnd":948.5999999046326,"domainLookupStart":948.5999999046326,"fetchStart":948.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":948.5999999046326,"responseEnd":1636.4000000953674,"responseStart":1636.4000000953674,"secureConnectionStart":948.5999999046326},{"duration":581.2999999523163,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1299.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1299.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1881.2000000476837,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":224,"responseStart":428,"responseEnd":460,"domLoading":432,"domInteractive":1814,"domContentLoadedEventStart":1814,"domContentLoadedEventEnd":1881,"domComplete":2524,"loadEventStart":2524,"loadEventEnd":2524,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1753.2999999523163},{"name":"bigPipe.sidebar-id.end","time":1754.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":1754.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1759},{"name":"activityTabFullyLoaded","time":1907.5999999046326}],"measures":[],"correlationId":"c52e9ccceb39fd","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":130,"dbReadsTimeInMs":19,"dbConnsTimeInMs":29,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
anikitin "to let developer review if XtraDB patches from https://bugs.launchpad.net/percona-xtrabackup/+bug/1399471 should be applied to ha_innodb as well".
we will not apply xtrabackup patches to innodb_plugin, this won't happen. The xtrabackup recovery will always be done with single version of innodb (i.e mariadb's version xtradb in 10.1, and marias version of innodb in 10..2+)
marko, can you take a shot on what seems to be a recovery bug?