danblack, any news on this? I see that 125 is ECANCELED in /usr/include/asm-generic/errno.h.
mleich got this on 5.15.0-52-generic #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux on an ext4 file system that was loopback mounted in a file that resided in /dev/shm. (Such indirection makes sense when using the older libaio; it does not support files residing directly on /dev/shm.)
Marko Mäkelä
added a comment - danblack , any news on this? I see that 125 is ECANCELED in /usr/include/asm-generic/errno.h .
mleich got this on 5.15.0-52-generic #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux on an ext4 file system that was loopback mounted in a file that resided in /dev/shm . (Such indirection makes sense when using the older libaio ; it does not support files residing directly on /dev/shm .)
# 2023-05-17T11:03:59 [216405] | 2023-05-17 11:03:55 0 [ERROR] [FATAL] InnoDB: IO Error: 125 during async lru write of 4096 bytes, for file 9, returned 0
danblack, do you have a patch that makes it easier to hit this bug?
Marko Mäkelä
added a comment - Yes, "doing fork/exit with IO inflight" seems to apply here:
# 2023-05-17T11:03:59 [216405] | 2023-05-17 11:03:55 0 [Note] /data/Server_bin/bb-10.6-MDEV-31234_RelWithDebInfo/bin/mysqld (initiated by: root[root] @ localhost [127.0.0.1]): Normal shutdown
# 2023-05-17T11:03:59 [216405] | 2023-05-17 11:03:55 0 [Note] InnoDB: FTS optimize thread exiting.
# 2023-05-17T11:03:59 [216405] | 2023-05-17 11:03:55 0 [ERROR] [FATAL] InnoDB: IO Error: 125 during async lru write of 4096 bytes, for file 9, returned 0
danblack , do you have a patch that makes it easier to hit this bug?
In MDEV-27593 I changed the wording of the message and made it a non-fatal error. Actually, I accidentally made it Note instead of ERROR, so this should not cause any mtr test failures anymore:
<< request.node->name << "(" << cb->m_fh << "), returned "
10.6 72928e640e62559f4d4b82e9ff1102bb72bd5828 with patch
var/9/log/mysqld.1.err:2023-08-01 15:27:09 0 [Note] InnoDB: IO Error: 42during write of 16384 bytes, for file ./ibdata1(11), returned 16384
Marko Mäkelä
added a comment - In MDEV-27593 I changed the wording of the message and made it a non-fatal error. Actually, I accidentally made it Note instead of ERROR , so this should not cause any mtr test failures anymore:
diff --git a/storage/innobase/os/os0file.cc b/storage/innobase/os/os0file.cc
index 906ce79e8fd..99f212b6eeb 100644
--- a/storage/innobase/os/os0file.cc
+++ b/storage/innobase/os/os0file.cc
@@ -3459,8 +3459,11 @@ static void write_io_callback(void *c)
const IORequest &request= *static_cast<const IORequest*>
(static_cast<const void*>(cb->m_userdata));
+ if (!ut_rnd_interval(100))
+ cb->m_err= 42;
+
if (UNIV_UNLIKELY(cb->m_err != 0))
- ib::info () << "IO Error: " << cb->m_err
+ ib::error() << "IO Error: " << cb->m_err
<< "during write of "
<< cb->m_len << " bytes, for file "
<< request.node->name << "(" << cb->m_fh << "), returned "
10.6 72928e640e62559f4d4b82e9ff1102bb72bd5828 with patch
var/9/log/mysqld.1.err:2023-08-01 15:27:09 0 [Note] InnoDB: IO Error: 42during write of 16384 bytes, for file ./ibdata1(11), returned 16384
2023-10-06 3:37:06 4 [Note] InnoDB: Importing tablespace for table 'test/tp' that was exported from host 'c8473bd36d6b'
2023-10-06 3:37:06 4 [Note] InnoDB: Phase I - Update all pages
2023-10-06 3:37:06 4 [Note] InnoDB: Sync to disk
2023-10-06 3:37:06 4 [Note] InnoDB: Sync to disk - done!
2023-10-06 3:37:06 4 [Note] InnoDB: Phase III - Flush changes to disk
2023-10-06 3:37:06 4 [Note] InnoDB: Phase IV - Flush complete
2023-10-06 3:37:06 4 [Note] InnoDB: `test`.`tp` autoinc value set to 2
2023-10-06 3:37:07 0 [Note] InnoDB: IO Error: 125during write of 491520 bytes, for file ./ibdata1(11), returned 0
----------SERVER LOG END-------------
mysqltest failed but provided no output
The server apparently hung here. The reason could be unrelated to the io_uring error, such as MDEV-32588.
Marko Mäkelä
added a comment - I got some logs of failures that occurred after MDEV-27593 was pushed into 10.6 (2003-08-01). I found only one failure that includes that fix:
bb-11.0-ycp-mdev-31996 d07012f4d84e57f1895f848b029fabd220b5d5be ppc64le-ubuntu-2204
encryption.innodb-checksum-algorithm '32k,ctr,innodb,strict_crc32' w8 [ fail ]
…
2023-10-06 3:37:06 4 [Note] InnoDB: Importing tablespace for table 'test/tp' that was exported from host 'c8473bd36d6b'
2023-10-06 3:37:06 4 [Note] InnoDB: Phase I - Update all pages
2023-10-06 3:37:06 4 [Note] InnoDB: Sync to disk
2023-10-06 3:37:06 4 [Note] InnoDB: Sync to disk - done!
2023-10-06 3:37:06 4 [Note] InnoDB: Phase III - Flush changes to disk
2023-10-06 3:37:06 4 [Note] InnoDB: Phase IV - Flush complete
2023-10-06 3:37:06 4 [Note] InnoDB: `test`.`tp` autoinc value set to 2
2023-10-06 3:37:07 0 [Note] InnoDB: IO Error: 125during write of 491520 bytes, for file ./ibdata1(11), returned 0
----------SERVER LOG END-------------
mysqltest failed but provided no output
The server apparently hung here. The reason could be unrelated to the io_uring error, such as MDEV-32588 .
A Linux kernel bug that was behind MDEV-30728 is specific to the POWER ISA. Therefore, this issue (errors on io_uring write completion callback, observed on ARMv8 and AMD64) should be unaffected by that fix.
Marko Mäkelä
added a comment - A Linux kernel bug that was behind MDEV-30728 is specific to the POWER ISA. Therefore, this issue (errors on io_uring write completion callback, observed on ARMv8 and AMD64) should be unaffected by that fix.
People
Unassigned
Daniel Black
Votes:
0Vote for this issue
Watchers:
6Start watching this issue
Dates
Created:
Updated:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":1109.5,"ttfb":235.90000009536743,"pageVisibility":"visible","entityId":114894,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"d15d3732-50d0-4cd0-9638-aa7438f51c8e","navigationType":0,"readyForUser":1222.2000000476837,"redirectCount":0,"resourceLoadedEnd":1030,"resourceLoadedStart":243.70000004768372,"resourceTiming":[{"duration":104.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":243.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":243.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":348.60000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":105,"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":244,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":244,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":349,"responseStart":0,"secureConnectionStart":0},{"duration":317.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":244.10000014305115,"connectEnd":244.10000014305115,"connectStart":244.10000014305115,"domainLookupEnd":244.10000014305115,"domainLookupStart":244.10000014305115,"fetchStart":244.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":354.40000009536743,"responseEnd":561.2000000476837,"responseStart":366.60000014305115,"secureConnectionStart":244.10000014305115},{"duration":544.9000000953674,"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":244.29999995231628,"connectEnd":244.29999995231628,"connectStart":244.29999995231628,"domainLookupEnd":244.29999995231628,"domainLookupStart":244.29999995231628,"fetchStart":244.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":373.40000009536743,"responseEnd":789.2000000476837,"responseStart":389.2000000476837,"secureConnectionStart":244.29999995231628},{"duration":150.79999995231628,"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":244.5,"connectEnd":244.5,"connectStart":244.5,"domainLookupEnd":244.5,"domainLookupStart":244.5,"fetchStart":244.5,"redirectEnd":0,"redirectStart":0,"requestStart":377.40000009536743,"responseEnd":395.2999999523163,"responseStart":392.90000009536743,"secureConnectionStart":244.5},{"duration":163.89999985694885,"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":244.60000014305115,"connectEnd":244.60000014305115,"connectStart":244.60000014305115,"domainLookupEnd":244.60000014305115,"domainLookupStart":244.60000014305115,"fetchStart":244.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":379.2999999523163,"responseEnd":408.5,"responseStart":401.5,"secureConnectionStart":244.60000014305115},{"duration":164.80000019073486,"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":244.79999995231628,"connectEnd":244.79999995231628,"connectStart":244.79999995231628,"domainLookupEnd":244.79999995231628,"domainLookupStart":244.79999995231628,"fetchStart":244.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":380,"responseEnd":409.60000014305115,"responseStart":402.5,"secureConnectionStart":244.79999995231628},{"duration":134.60000014305115,"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":245,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":245,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":379.60000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":165.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":245.20000004768372,"connectEnd":245.20000004768372,"connectStart":245.20000004768372,"domainLookupEnd":245.20000004768372,"domainLookupStart":245.20000004768372,"fetchStart":245.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":380.60000014305115,"responseEnd":410.40000009536743,"responseStart":404.90000009536743,"secureConnectionStart":245.20000004768372},{"duration":134.70000004768372,"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":245.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":245.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":380,"responseStart":0,"secureConnectionStart":0},{"duration":167.40000009536743,"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":245.5,"connectEnd":245.5,"connectStart":245.5,"domainLookupEnd":245.5,"domainLookupStart":245.5,"fetchStart":245.5,"redirectEnd":0,"redirectStart":0,"requestStart":382,"responseEnd":412.90000009536743,"responseStart":405.60000014305115,"secureConnectionStart":245.5},{"duration":774.2000000476837,"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":255.29999995231628,"connectEnd":255.29999995231628,"connectStart":255.29999995231628,"domainLookupEnd":255.29999995231628,"domainLookupStart":255.29999995231628,"fetchStart":255.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":1017.6000001430511,"responseEnd":1029.5,"responseStart":1028.7999999523163,"secureConnectionStart":255.29999995231628},{"duration":764.7999999523163,"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":265.2000000476837,"connectEnd":265.2000000476837,"connectStart":265.2000000476837,"domainLookupEnd":265.2000000476837,"domainLookupStart":265.2000000476837,"fetchStart":265.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1018.1000001430511,"responseEnd":1030,"responseStart":1029.5,"secureConnectionStart":265.2000000476837},{"duration":345.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":692,"connectEnd":692,"connectStart":692,"domainLookupEnd":692,"domainLookupStart":692,"fetchStart":692,"redirectEnd":0,"redirectStart":0,"requestStart":1000.2000000476837,"responseEnd":1037.4000000953674,"responseStart":1035.9000000953674,"secureConnectionStart":692},{"duration":221.70000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1046.2000000476837,"connectEnd":1046.2000000476837,"connectStart":1046.2000000476837,"domainLookupEnd":1046.2000000476837,"domainLookupStart":1046.2000000476837,"fetchStart":1046.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1230.9000000953674,"responseEnd":1267.9000000953674,"responseStart":1267.4000000953674,"secureConnectionStart":1046.2000000476837},{"duration":241.40000009536743,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1102.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1102.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1343.9000000953674,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":61,"responseStart":236,"responseEnd":265,"domLoading":239,"domInteractive":1350,"domContentLoadedEventStart":1350,"domContentLoadedEventEnd":1425,"domComplete":2009,"loadEventStart":2009,"loadEventEnd":2010,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1313.5},{"name":"bigPipe.sidebar-id.end","time":1314.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":1314.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1317.6000001430511},{"name":"activityTabFullyLoaded","time":1444.2000000476837}],"measures":[],"correlationId":"4ce7cd6ce2e4ad","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":112,"dbReadsTimeInMs":14,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
danblack, any news on this? I see that 125 is ECANCELED in /usr/include/asm-generic/errno.h.
mleich got this on 5.15.0-52-generic #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux on an ext4 file system that was loopback mounted in a file that resided in /dev/shm. (Such indirection makes sense when using the older libaio; it does not support files residing directly on /dev/shm.)