Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
10.6 , 10.7(EOL) , 10.8(EOL) , 10.9(EOL) , 10.10(EOL) , 10.11 , 11.0(EOL) , 11.1(EOL)
While repeatedly running the test innodb.alter_copy to test MDEV-29911 , I reproduced an assertion failure in fil_validate() . To make it more likely, apply this patch:
diff --git a/storage/innobase/fil/fil0fil.cc b/storage/innobase/fil/fil0fil.cc
index 365bb11c38f..a00709dab01 100644
--- a/storage/innobase/fil/fil0fil.cc
+++ b/storage/innobase/fil/fil0fil.cc
@@ -200,6 +200,8 @@ fil_system_t fil_system;
extern uint srv_fil_crypt_rotate_key_age;
#ifdef UNIV_DEBUG
+#define fil_validate_skip fil_validate
+#if 0
/** Try fil_validate() every this many times */
# define FIL_VALIDATE_SKIP 17
@@ -218,6 +220,7 @@ fil_validate_skip(void)
check in debug builds. */
return (fil_validate_count++ % FIL_VALIDATE_SKIP) || fil_validate();
}
+#endif
#endif /* UNIV_DEBUG */
/** Look up a tablespace.
I reproduced two rr replay traces that would be fixed by the following:
@@ -1140,8 +1144,10 @@ fil_space_t *recv_sys_t::recover_deferred(const recv_sys_t::map::iterator &p,
uint32_t(file_size / fil_space_t::physical_size(flags));
if (n_pages > size)
{
+ mysql_mutex_lock(&fil_system.mutex);
space->size= node->size= n_pages;
space->set_committed_size();
+ mysql_mutex_unlock(&fil_system.mutex);
goto size_set;
}
}
But, there is more to it. I think that it is best to continuously hold fil_system.mutex around the deferred tablespace creation, or in general, around the creation of a tablespace and adding the first (only) data file to it. With these fixes, the test innodb.alter_copy is stable in the 10.8 branch also after applying the MDEV-29911 changes.
I suspect that these changes should also fix the ut_a(fil_system.n_open == n_open) assertion failures in fil_validate() that have been observed starting with 10.6, occasionally when running the test innodb.table_definition_cache_debug .
blocks
MDEV-29911
InnoDB recovery and mariadb-backup --prepare fail to report detailed progress
Closed
{"report":{"fcp":807.5,"ttfb":178.70000004768372,"pageVisibility":"visible","entityId":121194,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"216469b4-2d35-4e27-a7bb-17130c7a1360","navigationType":0,"readyForUser":891.5999999046326,"redirectCount":0,"resourceLoadedEnd":850.5,"resourceLoadedStart":185.29999995231628,"resourceTiming":[{"duration":10.799999952316284,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":185.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":185.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":196.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":11,"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":185.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":185.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":196.5,"responseStart":0,"secureConnectionStart":0},{"duration":64.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":185.79999995231628,"connectEnd":185.79999995231628,"connectStart":185.79999995231628,"domainLookupEnd":185.79999995231628,"domainLookupStart":185.79999995231628,"fetchStart":185.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":185.79999995231628,"responseEnd":250,"responseStart":250,"secureConnectionStart":185.79999995231628},{"duration":165.09999990463257,"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":186,"connectEnd":186,"connectStart":186,"domainLookupEnd":186,"domainLookupStart":186,"fetchStart":186,"redirectEnd":0,"redirectStart":0,"requestStart":186,"responseEnd":351.09999990463257,"responseStart":351.09999990463257,"secureConnectionStart":186},{"duration":169.29999995231628,"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":186.20000004768372,"connectEnd":186.20000004768372,"connectStart":186.20000004768372,"domainLookupEnd":186.20000004768372,"domainLookupStart":186.20000004768372,"fetchStart":186.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":186.20000004768372,"responseEnd":355.5,"responseStart":355.5,"secureConnectionStart":186.20000004768372},{"duration":169.60000014305115,"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":186.39999985694885,"connectEnd":186.39999985694885,"connectStart":186.39999985694885,"domainLookupEnd":186.39999985694885,"domainLookupStart":186.39999985694885,"fetchStart":186.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":186.39999985694885,"responseEnd":356,"responseStart":356,"secureConnectionStart":186.39999985694885},{"duration":169.79999995231628,"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":186.59999990463257,"connectEnd":186.59999990463257,"connectStart":186.59999990463257,"domainLookupEnd":186.59999990463257,"domainLookupStart":186.59999990463257,"fetchStart":186.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":186.59999990463257,"responseEnd":356.39999985694885,"responseStart":356.39999985694885,"secureConnectionStart":186.59999990463257},{"duration":216,"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":186.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":186.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":402.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":170.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":186.89999985694885,"connectEnd":186.89999985694885,"connectStart":186.89999985694885,"domainLookupEnd":186.89999985694885,"domainLookupStart":186.89999985694885,"fetchStart":186.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":186.89999985694885,"responseEnd":357.09999990463257,"responseStart":357.09999990463257,"secureConnectionStart":186.89999985694885},{"duration":215.79999995231628,"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":187.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":187.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":402.89999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":171.29999995231628,"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":187.29999995231628,"connectEnd":187.29999995231628,"connectStart":187.29999995231628,"domainLookupEnd":187.29999995231628,"domainLookupStart":187.29999995231628,"fetchStart":187.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":187.29999995231628,"responseEnd":358.59999990463257,"responseStart":358.59999990463257,"secureConnectionStart":187.29999995231628},{"duration":356.7999999523163,"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":188.5,"connectEnd":188.5,"connectStart":188.5,"domainLookupEnd":188.5,"domainLookupStart":188.5,"fetchStart":188.5,"redirectEnd":0,"redirectStart":0,"requestStart":188.5,"responseEnd":545.2999999523163,"responseStart":545.2999999523163,"secureConnectionStart":188.5},{"duration":531.6000001430511,"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":188.59999990463257,"connectEnd":188.59999990463257,"connectStart":188.59999990463257,"domainLookupEnd":188.59999990463257,"domainLookupStart":188.59999990463257,"fetchStart":188.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":188.59999990463257,"responseEnd":720.2000000476837,"responseStart":720.2000000476837,"secureConnectionStart":188.59999990463257},{"duration":107.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":438.7999999523163,"connectEnd":438.7999999523163,"connectStart":438.7999999523163,"domainLookupEnd":438.7999999523163,"domainLookupStart":438.7999999523163,"fetchStart":438.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":438.7999999523163,"responseEnd":545.8999998569489,"responseStart":545.8999998569489,"secureConnectionStart":438.7999999523163},{"duration":95.20000004768372,"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":717.8999998569489,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":717.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":813.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":127.59999990463257,"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":718.7999999523163,"connectEnd":718.7999999523163,"connectStart":718.7999999523163,"domainLookupEnd":718.7999999523163,"domainLookupStart":718.7999999523163,"fetchStart":718.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":718.7999999523163,"responseEnd":846.3999998569489,"responseStart":846.3999998569489,"secureConnectionStart":718.7999999523163},{"duration":131.20000004768372,"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":719.2999999523163,"connectEnd":719.2999999523163,"connectStart":719.2999999523163,"domainLookupEnd":719.2999999523163,"domainLookupStart":719.2999999523163,"fetchStart":719.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":719.2999999523163,"responseEnd":850.5,"responseStart":850.5,"secureConnectionStart":719.2999999523163},{"duration":133.79999995231628,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":800.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":800.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":934,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":4,"responseStart":178,"responseEnd":181,"domLoading":183,"domInteractive":972,"domContentLoadedEventStart":972,"domContentLoadedEventEnd":1036,"domComplete":1142,"loadEventStart":1142,"loadEventEnd":1143,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":936.8999998569489},{"name":"bigPipe.sidebar-id.end","time":937.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":938},{"name":"bigPipe.activity-panel-pipe-id.end","time":939.2999999523163},{"name":"activityTabFullyLoaded","time":1054.2000000476837}],"measures":[],"correlationId":"d8d82162c60f18","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":111,"dbReadsTimeInMs":17,"dbConnsTimeInMs":26,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}