Xtrabackup 2.4.7 may hang in --prepare phase with MariaDB 10.2 in this test
https://github.com/percona/percona-xtrabackup/blob/2.4/storage/innobase/xtrabackup/test/t/undo_tablespaces.sh
/usr/bin/innobackupex version 2.4.7 based on MySQL server 5.7.13 Linux (x86_64) (revision id: 6f7a799)
|
xtrabackup: cd to /dev/shm/__var0/var1/backup/
|
xtrabackup: This target seems to be not prepared yet.
|
InnoDB: Number of pools: 1
|
xtrabackup: xtrabackup_logfile detected: size=10092544, start_lsn=(1504807)
|
xtrabackup: using the following InnoDB configuration for recovery:
|
xtrabackup: innodb_data_home_dir = .
|
xtrabackup: innodb_data_file_path = ibdata1:12M:autoextend
|
xtrabackup: innodb_log_group_home_dir = .
|
xtrabackup: innodb_log_files_in_group = 1
|
xtrabackup: innodb_log_file_size = 10092544
|
xtrabackup: using the following InnoDB configuration for recovery:
|
xtrabackup: innodb_data_home_dir = .
|
xtrabackup: innodb_data_file_path = ibdata1:12M:autoextend
|
xtrabackup: innodb_log_group_home_dir = .
|
xtrabackup: innodb_log_files_in_group = 1
|
xtrabackup: innodb_log_file_size = 10092544
|
xtrabackup: Starting InnoDB instance for recovery.
|
xtrabackup: Using 104857600 bytes for buffer pool (set by --use-memory parameter)
|
InnoDB: PUNCH HOLE support available
|
InnoDB: Mutexes and rw_locks use GCC atomic builtins
|
InnoDB: Uses event mutexes
|
InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
|
InnoDB: Compressed tables use zlib 1.2.8
|
InnoDB: Number of pools: 1
|
InnoDB: Using CPU crc32 instructions
|
InnoDB: Initializing buffer pool, total size = 100M, instances = 1, chunk size = 100M
|
InnoDB: Completed initialization of buffer pool
|
InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
|
InnoDB: Opened 4 undo tablespaces
|
InnoDB: 4 undo tablespaces made active
|
InnoDB: Highest supported file format is Barracuda.
|
InnoDB: Log scan progressed past the checkpoint lsn 1504807
|
InnoDB: Doing recovery: scanned up to log sequence number 6682112 (57%)
|
InnoDB: Doing recovery: scanned up to log sequence number 10416535 (99%)
|
InnoDB: Database was not shutdown normally!
|
InnoDB: Starting crash recovery.
|
InnoDB: 1 transaction(s) which must be rolled back or cleaned up in total 16049 row operations to undo
|
InnoDB: Trx id counter is 1792
|
InnoDB: Starting an apply batch of log records to the database...
|
InnoDB: Progress in percent: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
|
InnoDB: Apply batch completed
|
InnoDB: xtrabackup: Last MySQL binlog file position 3503344, file name ./mysql-bin.000002
|
InnoDB: Creating shared tablespace for temporary commit
|
InnoDB: Creating shared tablespace for temporary commit
|
InnoDB: Rolling back trx with id 1466, 16049 rows to undo
|
|
InnoDB: Progress in percents: 1InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
|
2 3InnoDB: File './ibtmp1' size is now 12 MB.
|
InnoDB: 96 redo rollback segment(s) found. 1 redo rollback segment(s) are active.
|
InnoDB: 32 non-redo rollback segment(s) are active.
|
4InnoDB: 5.7.13 started; log sequence number 10416535
|
InnoDB: xtrabackup: Last MySQL binlog file position 3503344, file name ./mysql-bin.000002
|
|
xtrabackup: starting shutdown with innodb_fast_shutdown = 1
|
InnoDB: FTS optimize thread exiting.
|
InnoDB: Starting shutdown...
|
InnoDB: Waiting for 1 active transactions to finish
|
InnoDB: Waiting for 1 active transactions to finish
|
The problem is not stable. Sometimes I can repeat it 1/10, sometimes it is 9/10 .
10.1.23 and 5.7.18 are not affected. 10.2.5 is affected.
There is consideration that the problem is incompatibility introduced by MDEV-12289, after which InnoDB 5.7 is not expecting TRX_SYS page slots 1..32 to contain transactions.
There is consideration that --prepare is not needed for simplest backup / restore scenario, and Server may be started directly on backup.
{"report":{"fcp":880.9000000953674,"ttfb":419.5,"pageVisibility":"visible","entityId":61299,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"945efeeb-118d-46f6-b231-e018ba98358a","navigationType":0,"readyForUser":971.4000000953674,"redirectCount":0,"resourceLoadedEnd":1068.5999999046326,"resourceLoadedStart":424.59999990463257,"resourceTiming":[{"duration":4.900000095367432,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":424.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":424.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":429.5,"responseStart":0,"secureConnectionStart":0},{"duration":6,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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","startTime":424.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":424.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":430.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":58.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":425.09999990463257,"connectEnd":425.09999990463257,"connectStart":425.09999990463257,"domainLookupEnd":425.09999990463257,"domainLookupStart":425.09999990463257,"fetchStart":425.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":425.09999990463257,"responseEnd":483.5,"responseStart":483.5,"secureConnectionStart":425.09999990463257},{"duration":144.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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","startTime":425.09999990463257,"connectEnd":425.09999990463257,"connectStart":425.09999990463257,"domainLookupEnd":425.09999990463257,"domainLookupStart":425.09999990463257,"fetchStart":425.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":425.09999990463257,"responseEnd":569.7999999523163,"responseStart":569.7999999523163,"secureConnectionStart":425.09999990463257},{"duration":148.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":425.2000000476837,"connectEnd":425.2000000476837,"connectStart":425.2000000476837,"domainLookupEnd":425.2000000476837,"domainLookupStart":425.2000000476837,"fetchStart":425.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":425.2000000476837,"responseEnd":573.5,"responseStart":573.5,"secureConnectionStart":425.2000000476837},{"duration":148.60000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":425.2999999523163,"connectEnd":425.2999999523163,"connectStart":425.2999999523163,"domainLookupEnd":425.2999999523163,"domainLookupStart":425.2999999523163,"fetchStart":425.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":425.2999999523163,"responseEnd":573.9000000953674,"responseStart":573.9000000953674,"secureConnectionStart":425.2999999523163},{"duration":346.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":429.7000000476837,"connectEnd":429.7000000476837,"connectStart":429.7000000476837,"domainLookupEnd":429.7000000476837,"domainLookupStart":429.7000000476837,"fetchStart":429.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":429.7000000476837,"responseEnd":776,"responseStart":776,"secureConnectionStart":429.7000000476837},{"duration":346.7999999523163,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":429.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":429.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":776.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":346.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":429.90000009536743,"connectEnd":429.90000009536743,"connectStart":429.90000009536743,"domainLookupEnd":429.90000009536743,"domainLookupStart":429.90000009536743,"fetchStart":429.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":429.90000009536743,"responseEnd":776.5,"responseStart":776.5,"secureConnectionStart":429.90000009536743},{"duration":347,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":430,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":430,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":777,"responseStart":0,"secureConnectionStart":0},{"duration":346.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":430.09999990463257,"connectEnd":430.09999990463257,"connectStart":430.09999990463257,"domainLookupEnd":430.09999990463257,"domainLookupStart":430.09999990463257,"fetchStart":430.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":430.09999990463257,"responseEnd":777,"responseStart":777,"secureConnectionStart":430.09999990463257},{"duration":472.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":442.2999999523163,"connectEnd":442.2999999523163,"connectStart":442.2999999523163,"domainLookupEnd":442.2999999523163,"domainLookupStart":442.2999999523163,"fetchStart":442.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":442.2999999523163,"responseEnd":914.4000000953674,"responseStart":914.4000000953674,"secureConnectionStart":442.2999999523163},{"duration":464.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":451.2000000476837,"connectEnd":451.2000000476837,"connectStart":451.2000000476837,"domainLookupEnd":451.2000000476837,"domainLookupStart":451.2000000476837,"fetchStart":451.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":451.2000000476837,"responseEnd":915.2999999523163,"responseStart":915.2999999523163,"secureConnectionStart":451.2000000476837},{"duration":266.80000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":638.0999999046326,"connectEnd":638.0999999046326,"connectStart":638.0999999046326,"domainLookupEnd":638.0999999046326,"domainLookupStart":638.0999999046326,"fetchStart":638.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":638.0999999046326,"responseEnd":904.9000000953674,"responseStart":904.7999999523163,"secureConnectionStart":638.0999999046326},{"duration":43.299999952316284,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":874.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":874.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":917.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":23.699999809265137,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/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","startTime":1016.4000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1016.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1040.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":23.100000143051147,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/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","startTime":1017.2999999523163,"connectEnd":1017.2999999523163,"connectStart":1017.2999999523163,"domainLookupEnd":1017.2999999523163,"domainLookupStart":1017.2999999523163,"fetchStart":1017.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":1017.2999999523163,"responseEnd":1040.4000000953674,"responseStart":1040.4000000953674,"secureConnectionStart":1017.2999999523163},{"duration":50.89999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/f51ef5507eea4c158f257c66c93b2a3f-CDN/lu2bu7/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","startTime":1017.7000000476837,"connectEnd":1017.7000000476837,"connectStart":1017.7000000476837,"domainLookupEnd":1017.7000000476837,"domainLookupStart":1017.7000000476837,"fetchStart":1017.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1017.7000000476837,"responseEnd":1068.5999999046326,"responseStart":1068.5999999046326,"secureConnectionStart":1017.7000000476837}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":238,"responseStart":420,"responseEnd":451,"domLoading":423,"domInteractive":1126,"domContentLoadedEventStart":1126,"domContentLoadedEventEnd":1186,"domComplete":1331,"loadEventStart":1331,"loadEventEnd":1332,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1073.4000000953674},{"name":"bigPipe.sidebar-id.end","time":1074.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1074.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":1078.7999999523163},{"name":"activityTabFullyLoaded","time":1205.5999999046326}],"measures":[],"correlationId":"4da2c59519824d","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":92,"dbReadsTimeInMs":16,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
MDEV-12773.zip is from slightly simplified test on current 10.2 :data - actual data directory (it probably may differ from backup as server was still running and doing background activities)
backup_orig - copy of backup, taken immediately after --backup operation
backup - actual backup with attempted --apply-log operation
au.sh - actual script used for testing
stdout.log - terminal's output