Test case:
--source include/have_xtradb.inc
|
|
CREATE TABLE t1(a INT) ENGINE=InnoDB;
|
SELECT * FROM t1;
|
--send SET @@global.table_open_cache=400;
|
|
connect(con1, localhost, root);
|
ALTER TABLE t1 COMMENT='abc';
|
disconnect con1;
|
|
connection default;
|
--reap
|
DROP TABLE t1;
|
Apply this patch to make it stuck reliably:
diff --git a/sql/table_cache.cc b/sql/table_cache.cc
|
index 097f37d..b46a620 100644
|
--- a/sql/table_cache.cc
|
+++ b/sql/table_cache.cc
|
@@ -865,6 +865,8 @@ void tdc_release_share(TABLE_SHARE *share)
|
}
|
mysql_mutex_unlock(&share->tdc.LOCK_table_share);
|
|
+ if (!strcmp(share->table_name.str, "t1") && !share->tdc.flushed)
|
+ sleep(1);
|
mysql_mutex_lock(&LOCK_unused_shares);
|
mysql_mutex_lock(&share->tdc.LOCK_table_share);
|
if (share->tdc.flushed)
|
{"report":{"fcp":840.2000000476837,"ttfb":204.30000019073486,"pageVisibility":"visible","entityId":57300,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"12839e3b-bd98-4028-9105-add54edea011","navigationType":0,"readyForUser":925.1000001430511,"redirectCount":0,"resourceLoadedEnd":946.9000000953674,"resourceLoadedStart":209.90000009536743,"resourceTiming":[{"duration":8.299999952316284,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":209.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":209.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":218.20000004768372,"responseStart":0,"secureConnectionStart":0},{"duration":25.799999952316284,"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":210.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":210.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":236,"responseStart":0,"secureConnectionStart":0},{"duration":66.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":210.40000009536743,"connectEnd":210.40000009536743,"connectStart":210.40000009536743,"domainLookupEnd":210.40000009536743,"domainLookupStart":210.40000009536743,"fetchStart":210.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":210.40000009536743,"responseEnd":276.60000014305115,"responseStart":276.60000014305115,"secureConnectionStart":210.40000009536743},{"duration":161.59999990463257,"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":210.60000014305115,"connectEnd":210.60000014305115,"connectStart":210.60000014305115,"domainLookupEnd":210.60000014305115,"domainLookupStart":210.60000014305115,"fetchStart":210.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":210.60000014305115,"responseEnd":372.2000000476837,"responseStart":372.2000000476837,"secureConnectionStart":210.60000014305115},{"duration":165.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":210.90000009536743,"connectEnd":210.90000009536743,"connectStart":210.90000009536743,"domainLookupEnd":210.90000009536743,"domainLookupStart":210.90000009536743,"fetchStart":210.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":210.90000009536743,"responseEnd":376.2000000476837,"responseStart":376.2000000476837,"secureConnectionStart":210.90000009536743},{"duration":165.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":211,"connectEnd":211,"connectStart":211,"domainLookupEnd":211,"domainLookupStart":211,"fetchStart":211,"redirectEnd":0,"redirectStart":0,"requestStart":211,"responseEnd":376.90000009536743,"responseStart":376.90000009536743,"secureConnectionStart":211},{"duration":166.39999985694885,"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":211.30000019073486,"connectEnd":211.30000019073486,"connectStart":211.30000019073486,"domainLookupEnd":211.30000019073486,"domainLookupStart":211.30000019073486,"fetchStart":211.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":211.30000019073486,"responseEnd":377.7000000476837,"responseStart":377.7000000476837,"secureConnectionStart":211.30000019073486},{"duration":223.30000019073486,"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":211.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":211.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":434.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":167.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":211.60000014305115,"connectEnd":211.60000014305115,"connectStart":211.60000014305115,"domainLookupEnd":211.60000014305115,"domainLookupStart":211.60000014305115,"fetchStart":211.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":211.60000014305115,"responseEnd":378.7000000476837,"responseStart":378.7000000476837,"secureConnectionStart":211.60000014305115},{"duration":223.19999980926514,"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":211.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":211.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":435,"responseStart":0,"secureConnectionStart":0},{"duration":167.30000019073486,"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":212,"connectEnd":212,"connectStart":212,"domainLookupEnd":212,"domainLookupStart":212,"fetchStart":212,"redirectEnd":0,"redirectStart":0,"requestStart":212,"responseEnd":379.30000019073486,"responseStart":379.30000019073486,"secureConnectionStart":212},{"duration":346.5,"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":218,"connectEnd":218,"connectStart":218,"domainLookupEnd":218,"domainLookupStart":218,"fetchStart":218,"redirectEnd":0,"redirectStart":0,"requestStart":218,"responseEnd":564.5,"responseStart":564.5,"secureConnectionStart":218},{"duration":598.8999998569489,"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":218.10000014305115,"connectEnd":218.10000014305115,"connectStart":218.10000014305115,"domainLookupEnd":218.10000014305115,"domainLookupStart":218.10000014305115,"fetchStart":218.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":218.10000014305115,"responseEnd":817,"responseStart":817,"secureConnectionStart":218.10000014305115},{"duration":112.70000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":452.2000000476837,"connectEnd":452.2000000476837,"connectStart":452.2000000476837,"domainLookupEnd":452.2000000476837,"domainLookupStart":452.2000000476837,"fetchStart":452.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":452.2000000476837,"responseEnd":564.9000000953674,"responseStart":564.9000000953674,"secureConnectionStart":452.2000000476837},{"duration":214.90000009536743,"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":732,"connectEnd":732,"connectStart":732,"domainLookupEnd":732,"domainLookupStart":732,"fetchStart":732,"redirectEnd":0,"redirectStart":0,"requestStart":732,"responseEnd":946.9000000953674,"responseStart":946.9000000953674,"secureConnectionStart":732}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":51,"responseStart":205,"responseEnd":210,"domLoading":208,"domInteractive":984,"domContentLoadedEventStart":984,"domContentLoadedEventEnd":1028,"domComplete":1772,"loadEventStart":1772,"loadEventEnd":1773,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":960.8000001907349},{"name":"bigPipe.sidebar-id.end","time":962.1000001430511},{"name":"bigPipe.activity-panel-pipe-id.start","time":962.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":964.7000000476837},{"name":"activityTabFullyLoaded","time":1036.9000000953674}],"measures":[],"correlationId":"ecca711f8e31a1","effectiveType":"4g","downlink":9.9,"rtt":0,"serverDuration":91,"dbReadsTimeInMs":12,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}