Example testcase:
# mysqld options required for replay: --log_bin
|
SET GLOBAL innodb_flush_log_at_timeout=300;
|
CREATE TABLE t (c INT) ENGINE=InnoDB;
|
SELECT SLEEP(2);
|
RESET MASTER;
|
Various issues observed:
1. When the testcase is executed in the CLI , itwill lead to a temporary client hang:
11.2.6 a8517608894f43954e210035d357400b3d637195 (Debug)
|
11.2.6-dbg>SET GLOBAL innodb_flush_log_at_timeout=300;
|
Query OK, 0 rows affected (0.000 sec)
|
|
11.2.6-dbg>CREATE TABLE t (c INT) ENGINE=InnoDB;
|
Query OK, 0 rows affected (0.008 sec)
|
|
11.2.6-dbg>SELECT SLEEP(2);
|
|
+----------+
|
| SLEEP(2) |
|
+----------+
|
| 0 |
|
+----------+
|
1 row in set (2.000 sec)
|
|
11.2.6-dbg>RESET MASTER;
|
Query OK, 0 rows affected (4 min 57.568 sec)
|
The RESET MASTER should execute immediately. The few seconds difference is likely due to the SLEEP vs flushing delay.
2. When the SLEEP is removed, the exec is immediate:
11.2.6 a8517608894f43954e210035d357400b3d637195 (Debug)
|
11.2.6-dbg>SET GLOBAL innodb_flush_log_at_timeout=300;
|
Query OK, 0 rows affected (0.000 sec)
|
|
11.2.6-dbg>CREATE TABLE t (c INT) ENGINE=InnoDB;
|
Query OK, 0 rows affected (0.007 sec)
|
|
11.2.6-dbg>RESET MASTER;
|
Query OK, 0 rows affected (0.007 sec)
|
3. When the RESET MASTER in #1 is killed with CTRL+c, the query shows as "Killed starting" in the processlist;
11.2.6 a8517608894f43954e210035d357400b3d637195 (Debug)
|
11.2.6-dbg>SHOW PROCESSLIST;
|
+----+------+-----------+------+---------+------+----------+------------------+----------+
|
| Id | User | Host | db | Command | Time | State | Info | Progress |
|
+----+------+-----------+------+---------+------+----------+------------------+----------+
|
| 5 | root | localhost | test | Killed | 37 | starting | RESET master | 0.000 |
|
| 6 | root | localhost | test | Query | 0 | starting | show processlist | 0.000 |
|
+----+------+-----------+------+---------+------+----------+------------------+----------+
|
2 rows in set (0.000 sec)
|
4. When the RESET MASTER is executing, mariadb-admin will hang.
https://mariadb.com/kb/en/innodb-system-variables/#innodb_flush_log_at_timeout
- duplicates
-
MDEV-25611
RESET MASTER still causes the server to hang
-
-
Closed
There are no comments yet on this issue.
{"report":{"fcp":712.7999999523163,"ttfb":209.69999980926514,"pageVisibility":"visible","entityId":130484,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"817b1900-9e76-467b-96e2-e7fa7105b751","navigationType":0,"readyForUser":800.1999998092651,"redirectCount":0,"resourceLoadedEnd":391.39999985694885,"resourceLoadedStart":214.59999990463257,"resourceTiming":[{"duration":6.400000095367432,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":214.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":214.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":221,"responseStart":0,"secureConnectionStart":0},{"duration":6.400000095367432,"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":214.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":214.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":221.29999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":78.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":215,"connectEnd":215,"connectStart":215,"domainLookupEnd":215,"domainLookupStart":215,"fetchStart":215,"redirectEnd":0,"redirectStart":0,"requestStart":226.79999995231628,"responseEnd":293.2999999523163,"responseStart":250.19999980926514,"secureConnectionStart":215},{"duration":102.70000004768372,"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":215.19999980926514,"connectEnd":215.19999980926514,"connectStart":215.19999980926514,"domainLookupEnd":215.19999980926514,"domainLookupStart":215.19999980926514,"fetchStart":215.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":231.29999995231628,"responseEnd":317.89999985694885,"responseStart":265,"secureConnectionStart":215.19999980926514},{"duration":46.90000009536743,"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":215.39999985694885,"connectEnd":215.39999985694885,"connectStart":215.39999985694885,"domainLookupEnd":215.39999985694885,"domainLookupStart":215.39999985694885,"fetchStart":215.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":231.5,"responseEnd":262.2999999523163,"responseStart":261.7999999523163,"secureConnectionStart":215.39999985694885},{"duration":44.200000047683716,"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":215.59999990463257,"connectEnd":215.59999990463257,"connectStart":215.59999990463257,"domainLookupEnd":215.59999990463257,"domainLookupStart":215.59999990463257,"fetchStart":215.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":229.29999995231628,"responseEnd":259.7999999523163,"responseStart":259.09999990463257,"secureConnectionStart":215.59999990463257},{"duration":47.200000047683716,"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":215.69999980926514,"connectEnd":215.69999980926514,"connectStart":215.69999980926514,"domainLookupEnd":215.69999980926514,"domainLookupStart":215.69999980926514,"fetchStart":215.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":231.39999985694885,"responseEnd":262.89999985694885,"responseStart":262.5,"secureConnectionStart":215.69999980926514},{"duration":13.100000143051147,"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":215.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":215.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":229,"responseStart":0,"secureConnectionStart":0},{"duration":92.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":216.09999990463257,"connectEnd":216.09999990463257,"connectStart":216.09999990463257,"domainLookupEnd":216.09999990463257,"domainLookupStart":216.09999990463257,"fetchStart":216.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":236.29999995231628,"responseEnd":308.59999990463257,"responseStart":308,"secureConnectionStart":216.09999990463257},{"duration":15.200000047683716,"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":216.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":216.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":231.39999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":56,"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":216.39999985694885,"connectEnd":216.39999985694885,"connectStart":216.39999985694885,"domainLookupEnd":216.39999985694885,"domainLookupStart":216.39999985694885,"fetchStart":216.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":236.09999990463257,"responseEnd":272.39999985694885,"responseStart":271.69999980926514,"secureConnectionStart":216.39999985694885},{"duration":162.89999985694885,"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":228.29999995231628,"connectEnd":228.29999995231628,"connectStart":228.29999995231628,"domainLookupEnd":228.29999995231628,"domainLookupStart":228.29999995231628,"fetchStart":228.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":261.2999999523163,"responseEnd":391.19999980926514,"responseStart":389.19999980926514,"secureConnectionStart":228.29999995231628},{"duration":163,"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":228.39999985694885,"connectEnd":228.39999985694885,"connectStart":228.39999985694885,"domainLookupEnd":228.39999985694885,"domainLookupStart":228.39999985694885,"fetchStart":228.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":261.09999990463257,"responseEnd":391.39999985694885,"responseStart":389.69999980926514,"secureConnectionStart":228.39999985694885},{"duration":180.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":498.09999990463257,"connectEnd":498.09999990463257,"connectStart":498.09999990463257,"domainLookupEnd":498.09999990463257,"domainLookupStart":498.09999990463257,"fetchStart":498.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":639.2999999523163,"responseEnd":678.5999999046326,"responseStart":677.7999999523163,"secureConnectionStart":498.09999990463257},{"duration":129.70000004768372,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":706.8999998569489,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":706.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":836.5999999046326,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":18,"domainLookupEnd":23,"connectStart":23,"connectEnd":43,"secureConnectionStart":32,"requestStart":43,"responseStart":210,"responseEnd":228,"domLoading":213,"domInteractive":854,"domContentLoadedEventStart":854,"domContentLoadedEventEnd":891,"domComplete":1262,"loadEventStart":1262,"loadEventEnd":1262,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":838.5},{"name":"bigPipe.sidebar-id.end","time":839.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":839.3999998569489},{"name":"bigPipe.activity-panel-pipe-id.end","time":839.8999998569489},{"name":"activityTabFullyLoaded","time":899.5999999046326}],"measures":[],"correlationId":"e299aadbeacff0","effectiveType":"4g","downlink":9.2,"rtt":0,"serverDuration":96,"dbReadsTimeInMs":10,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}