The test case below is for reproducing purposes only, don't add it to the regression suite!
It starts mariabackup and then while it's running keeps executing CREATE OR REPLACE TABLE, alternating engines. Occasionally mariabackup fails with errors like
Error on file ./test/t.MYD open during `test`.`t` table copy
|
The failure is not new, it is also reproducible at least on 10.11 and higher. However, I would expect it to work better now with atomic CREATE OR REPLACE. If this expectation is incorrect, please feel free to close or demote.
The test case already has the loops, so it shouldn't be necessary to run it with --repeat (although it can be done). Alternatively, you can change the max value of repetitions in the upper loop if it doesn't fail with the current 20.
--let $repeat= 0
|
while ($repeat<20) {
|
--inc $repeat
|
--echo #
|
--echo # Attempt # $repeat
|
--echo #
|
--echo # Starting mariabackup
|
--exec $XTRABACKUP --binlog-info=ON --backup --skip-ssl --loose-disable-ssl-verify-server-cert --target-dir=$MYSQL_TMP_DIR/mbackup --protocol=tcp --port=$MASTER_MYPORT --user=root > $MYSQL_TMP_DIR/mbackup.log 2>&1 &
|
|
--let $create= 1000
|
--disable_query_log
|
--echo # Running $create x 2 CREATE OR REPLACE
|
while ($create) {
|
CREATE OR REPLACE TABLE t (a INT) ENGINE=MyISAM;
|
CREATE OR REPLACE TABLE t (a INT) ENGINE=Aria;
|
--error 0,1
|
--exec grep "Data files backup process is finished with error" $MYSQL_TMP_DIR/mbackup.log
|
if ($sys_errno==0) {
|
--exec grep "Error" $MYSQL_TMP_DIR/mbackup.log
|
--die "Backup ended with an error, see $MYSQL_TMP_DIR/mbackup.log"
|
}
|
--dec $create
|
}
|
--enable_query_log
|
|
--let $wait=1
|
while ($wait) {
|
--echo # Waiting for for mariabackup to finish
|
--error 0,1
|
--exec grep "Data files backup process is finished with error" $MYSQL_TMP_DIR/mbackup.log
|
if ($sys_errno==0) {
|
--exec grep "Error" $MYSQL_TMP_DIR/mbackup.log
|
--die "Backup ended with an error, see $MYSQL_TMP_DIR/mbackup.log"
|
}
|
--error 0,1
|
--exec grep "completed OK" $MYSQL_TMP_DIR/mbackup.log
|
if ($sys_errno==0) {
|
--let $wait=0
|
}
|
if ($sys_errno>0) {
|
--sleep 1
|
}
|
}
|
--exec rm -rf $MYSQL_TMP_DIR/mbackup
|
}
|
|
DROP TABLE IF EXISTS t;
|
bb-main-monty a71a40e919587c59603272251fbcbce46e446534
|
# Attempt # 4
|
#
|
# Starting mariabackup
|
# Running 1000 x 2 CREATE OR REPLACE
|
[00] 2025-04-10 17:56:45 Data files backup process is finished with error
|
[00] 2025-04-10 17:56:45 Error on file ./test/t.MYD open during `test`.`t` table copy
|
bug.cor31b [ fail ]
|
Test ended at 2025-04-10 17:56:45
|
|
CURRENT_TEST: bug.cor31b
|
mysqltest: At line 45: "Backup ended with an error, see /bb-main-monty-debug/mysql-test/var/tmp/mbackup.log"
|
mbackup.log
|
...
|
[00] 2025-04-10 17:56:45 Stop scanning common engine tables
|
[00] 2025-04-10 17:56:45 Start copying aria log file tail: /share8t/bld/preview-12.0-bb-main-monty-debug/mysql-test/var/mysqld.1/data//aria_log.00000001
|
[00] 2025-04-10 17:56:45 Stop copying aria log file tail: /share8t/bld/preview-12.0-bb-main-monty-debug/mysql-test/var/mysqld.1/data//aria_log.00000001, copied 0 bytes
|
[00] 2025-04-10 17:56:45 Copied file ./mtr/global_suppressions.MYI for table `mtr`.`global_suppressions`, 1024 bytes
|
[00] 2025-04-10 17:56:45 Copied file ./mtr/global_suppressions.MYD for table `mtr`.`global_suppressions`, 5304 bytes
|
[00] 2025-04-10 17:56:45 Copied file ./mtr/test_suppressions.MYI for table `mtr`.`test_suppressions`, 1024 bytes
|
[00] 2025-04-10 17:56:45 Copied file ./mtr/test_suppressions.MYD for table `mtr`.`test_suppressions`, 0 bytes
|
[00] 2025-04-10 17:56:45 Error on file ./test/t.MYD open during `test`.`t` table copy
|
[00] 2025-04-10 17:56:45 aria table file ./mysql/gtid_slave_pos.MAI is copied successfully.
|
[00] 2025-04-10 17:56:45 aria table file ./mysql/gtid_slave_pos.MAD is copied successfully.
|
[00] 2025-04-10 17:56:45 aria table file ./mysql/help_keyword.MAI is copied successfully.
|
[00] 2025-04-10 17:56:45 aria table file ./mysql/help_keyword.MAD is copied successfully.
|
[00] 2025-04-10 17:56:45 aria table file ./mysql/help_relation.MAI is copied successfully.
|
[00] 2025-04-10 17:56:45 aria table file ./mysql/help_relation.MAD is copied successfully.
|
[00] 2025-04-10 17:56:45 aria table file ./mysql/help_category.MAI is copied successfully.
|
[00] 2025-04-10 17:56:45 aria table file ./mysql/help_category.MAD is copied successfully.
|
[00] 2025-04-10 17:56:45 aria table file ./mysql/help_topic.MAI is copied successfully.
|
[00] 2025-04-10 17:56:45 aria table file ./mysql/help_topic.MAD is copied successfully.
|
[00] 2025-04-10 17:56:45 Data files backup process is finished with error
|
mariabackup: Stopping log copying thread.
|
- relates to
-
MDEV-25292
Atomic CREATE OR REPLACE TABLE
-
-
Stalled
{"report":{"fcp":1488.800000011921,"ttfb":527.5999999940395,"pageVisibility":"visible","entityId":133767,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"735e2979-c75c-4a66-9c22-f65c198c8674","navigationType":0,"readyForUser":1581.5,"redirectCount":0,"resourceLoadedEnd":1812.5,"resourceLoadedStart":533.5,"resourceTiming":[{"duration":530.1999999880791,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":533.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":533.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1063.699999988079,"responseStart":0,"secureConnectionStart":0},{"duration":530,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":533.9000000059605,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":533.9000000059605,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1063.9000000059605,"responseStart":0,"secureConnectionStart":0},{"duration":538.6999999880791,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":534,"connectEnd":534,"connectStart":534,"domainLookupEnd":534,"domainLookupStart":534,"fetchStart":534,"redirectEnd":0,"redirectStart":0,"requestStart":534,"responseEnd":1072.699999988079,"responseStart":1072.699999988079,"secureConnectionStart":534},{"duration":570.1000000238419,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":534.1999999880791,"connectEnd":534.1999999880791,"connectStart":534.1999999880791,"domainLookupEnd":534.1999999880791,"domainLookupStart":534.1999999880791,"fetchStart":534.1999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":534.1999999880791,"responseEnd":1104.300000011921,"responseStart":1104.300000011921,"secureConnectionStart":534.1999999880791},{"duration":573.5999999940395,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":534.4000000059605,"connectEnd":534.4000000059605,"connectStart":534.4000000059605,"domainLookupEnd":534.4000000059605,"domainLookupStart":534.4000000059605,"fetchStart":534.4000000059605,"redirectEnd":0,"redirectStart":0,"requestStart":534.4000000059605,"responseEnd":1108,"responseStart":1108,"secureConnectionStart":534.4000000059605},{"duration":574,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":534.5,"connectEnd":534.5,"connectStart":534.5,"domainLookupEnd":534.5,"domainLookupStart":534.5,"fetchStart":534.5,"redirectEnd":0,"redirectStart":0,"requestStart":534.5,"responseEnd":1108.5,"responseStart":1108.5,"secureConnectionStart":534.5},{"duration":573.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":535.3000000119209,"connectEnd":535.3000000119209,"connectStart":535.3000000119209,"domainLookupEnd":535.3000000119209,"domainLookupStart":535.3000000119209,"fetchStart":535.3000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":535.3000000119209,"responseEnd":1108.800000011921,"responseStart":1108.800000011921,"secureConnectionStart":535.3000000119209},{"duration":574.3000000119209,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":535.5999999940395,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":535.5999999940395,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1109.9000000059605,"responseStart":0,"secureConnectionStart":0},{"duration":573.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":535.6999999880791,"connectEnd":535.6999999880791,"connectStart":535.6999999880791,"domainLookupEnd":535.6999999880791,"domainLookupStart":535.6999999880791,"fetchStart":535.6999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":535.6999999880791,"responseEnd":1109.199999988079,"responseStart":1109.199999988079,"secureConnectionStart":535.6999999880791},{"duration":574.0999999940395,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":535.9000000059605,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":535.9000000059605,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1110,"responseStart":0,"secureConnectionStart":0},{"duration":573.8000000119209,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":536,"connectEnd":536,"connectStart":536,"domainLookupEnd":536,"domainLookupStart":536,"fetchStart":536,"redirectEnd":0,"redirectStart":0,"requestStart":536,"responseEnd":1109.800000011921,"responseStart":1109.800000011921,"secureConnectionStart":536},{"duration":773.2999999821186,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":542.4000000059605,"connectEnd":542.4000000059605,"connectStart":542.4000000059605,"domainLookupEnd":542.4000000059605,"domainLookupStart":542.4000000059605,"fetchStart":542.4000000059605,"redirectEnd":0,"redirectStart":0,"requestStart":542.4000000059605,"responseEnd":1315.699999988079,"responseStart":1315.699999988079,"secureConnectionStart":542.4000000059605},{"duration":1270,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":542.5,"connectEnd":542.5,"connectStart":542.5,"domainLookupEnd":542.5,"domainLookupStart":542.5,"fetchStart":542.5,"redirectEnd":0,"redirectStart":0,"requestStart":542.5,"responseEnd":1812.5,"responseStart":1812.5,"secureConnectionStart":542.5},{"duration":508.80000001192093,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1303.199999988079,"connectEnd":1303.199999988079,"connectStart":1303.199999988079,"domainLookupEnd":1303.199999988079,"domainLookupStart":1303.199999988079,"fetchStart":1303.199999988079,"redirectEnd":0,"redirectStart":0,"requestStart":1303.199999988079,"responseEnd":1812,"responseStart":1812,"secureConnectionStart":1303.199999988079},{"duration":354.7999999821186,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1482.800000011921,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1482.800000011921,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1837.5999999940395,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":358,"responseStart":528,"responseEnd":533,"domLoading":532,"domInteractive":1838,"domContentLoadedEventStart":1838,"domContentLoadedEventEnd":1878,"domComplete":3057,"loadEventStart":3057,"loadEventEnd":3059,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1821.9000000059605},{"name":"bigPipe.sidebar-id.end","time":1822.800000011921},{"name":"bigPipe.activity-panel-pipe-id.start","time":1822.9000000059605},{"name":"bigPipe.activity-panel-pipe-id.end","time":1825.199999988079},{"name":"activityTabFullyLoaded","time":1885.5}],"measures":[],"correlationId":"7e16327dbd6905","effectiveType":"4g","downlink":9.3,"rtt":0,"serverDuration":96,"dbReadsTimeInMs":11,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}