I noticed in Debian build logs that this fails sporadically:
sys_vars.innodb_buffer_pool_load_now_basic 'xtradb' w6 [ fail ]
|
Test ended at 2016-03-12 03:03:35
|
|
CURRENT_TEST: sys_vars.innodb_buffer_pool_load_now_basic
|
mysqltest: At line 23: command "file_exists" failed with error: 1 my_errno: 0 errno: 2
|
|
The result from queries just before the failure was:
|
SET @orig = @@global.innodb_buffer_pool_load_now;
|
SELECT @orig;
|
@orig
|
0
|
SET GLOBAL innodb_buffer_pool_dump_now = ON;
|
(from https://tests.reproducible-builds.org/logs/unstable/amd64/mariadb-10.0_10.0.24-4.build2.log.gz)
elenst mentioned it in TODO-723, so it is a known one, but there was no MDEV so I created one now.
{"report":{"fcp":1252.3000001907349,"ttfb":427.30000019073486,"pageVisibility":"visible","entityId":56127,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"9f19aa5f-e35a-42d0-8653-74a48f30a0ba","navigationType":0,"readyForUser":1324.2000007629395,"redirectCount":0,"resourceLoadedEnd":1782.1000003814697,"resourceLoadedStart":432.9000005722046,"resourceTiming":[{"duration":163.5999994277954,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":432.9000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":432.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":596.5,"responseStart":0,"secureConnectionStart":0},{"duration":163.60000038146973,"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":433.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":433.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":596.7000007629395,"responseStart":0,"secureConnectionStart":0},{"duration":232,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":433.4000005722046,"connectEnd":433.4000005722046,"connectStart":433.4000005722046,"domainLookupEnd":433.4000005722046,"domainLookupStart":433.4000005722046,"fetchStart":433.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":433.4000005722046,"responseEnd":665.4000005722046,"responseStart":665.4000005722046,"secureConnectionStart":433.4000005722046},{"duration":496.4000005722046,"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":433.5,"connectEnd":433.5,"connectStart":433.5,"domainLookupEnd":433.5,"domainLookupStart":433.5,"fetchStart":433.5,"redirectEnd":0,"redirectStart":0,"requestStart":433.5,"responseEnd":929.9000005722046,"responseStart":929.9000005722046,"secureConnectionStart":433.5},{"duration":500.5999994277954,"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":433.70000076293945,"connectEnd":433.70000076293945,"connectStart":433.70000076293945,"domainLookupEnd":433.70000076293945,"domainLookupStart":433.70000076293945,"fetchStart":433.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":433.70000076293945,"responseEnd":934.3000001907349,"responseStart":934.3000001907349,"secureConnectionStart":433.70000076293945},{"duration":500.9000005722046,"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":434,"connectEnd":434,"connectStart":434,"domainLookupEnd":434,"domainLookupStart":434,"fetchStart":434,"redirectEnd":0,"redirectStart":0,"requestStart":434,"responseEnd":934.9000005722046,"responseStart":934.9000005722046,"secureConnectionStart":434},{"duration":501,"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":434.20000076293945,"connectEnd":434.20000076293945,"connectStart":434.20000076293945,"domainLookupEnd":434.20000076293945,"domainLookupStart":434.20000076293945,"fetchStart":434.20000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":434.20000076293945,"responseEnd":935.2000007629395,"responseStart":935.2000007629395,"secureConnectionStart":434.20000076293945},{"duration":501.5,"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":434.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":434.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":935.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":501.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":434.5,"connectEnd":434.5,"connectStart":434.5,"domainLookupEnd":434.5,"domainLookupStart":434.5,"fetchStart":434.5,"redirectEnd":0,"redirectStart":0,"requestStart":434.5,"responseEnd":935.8000001907349,"responseStart":935.8000001907349,"secureConnectionStart":434.5},{"duration":501.69999980926514,"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":434.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":434.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":936.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":501.5,"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":434.80000019073486,"connectEnd":434.80000019073486,"connectStart":434.80000019073486,"domainLookupEnd":434.80000019073486,"domainLookupStart":434.80000019073486,"fetchStart":434.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":434.80000019073486,"responseEnd":936.3000001907349,"responseStart":936.3000001907349,"secureConnectionStart":434.80000019073486},{"duration":896,"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":440.4000005722046,"connectEnd":440.4000005722046,"connectStart":440.4000005722046,"domainLookupEnd":440.4000005722046,"domainLookupStart":440.4000005722046,"fetchStart":440.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":440.4000005722046,"responseEnd":1336.4000005722046,"responseStart":1336.4000005722046,"secureConnectionStart":440.4000005722046},{"duration":1332.8999996185303,"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":441.1000003814697,"connectEnd":441.1000003814697,"connectStart":441.1000003814697,"domainLookupEnd":441.1000003814697,"domainLookupStart":441.1000003814697,"fetchStart":441.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":441.1000003814697,"responseEnd":1774,"responseStart":1774,"secureConnectionStart":441.1000003814697},{"duration":349,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":812.7000007629395,"connectEnd":812.7000007629395,"connectStart":812.7000007629395,"domainLookupEnd":812.7000007629395,"domainLookupStart":812.7000007629395,"fetchStart":812.7000007629395,"redirectEnd":0,"redirectStart":0,"requestStart":812.7000007629395,"responseEnd":1161.7000007629395,"responseStart":1161.6000003814697,"secureConnectionStart":812.7000007629395},{"duration":535.0999994277954,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bv2/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","startTime":1203.7000007629395,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1203.7000007629395,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1738.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":534.6999998092651,"initiatorType":"link","name":"https://jira.mariadb.org/s/50bc9be5bfead1a25e72c1a9338c94f6-CDN/lu2bv2/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/css/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":1204.4000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1204.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1739.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":569.6999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/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","startTime":1205.3000001907349,"connectEnd":1205.3000001907349,"connectStart":1205.3000001907349,"domainLookupEnd":1205.3000001907349,"domainLookupStart":1205.3000001907349,"fetchStart":1205.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1205.3000001907349,"responseEnd":1775,"responseStart":1775,"secureConnectionStart":1205.3000001907349},{"duration":576.1000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/s/630dda803a823fdd5771c4338338e018-CDN/lu2bv2/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/js/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":1206,"connectEnd":1206,"connectStart":1206,"domainLookupEnd":1206,"domainLookupStart":1206,"fetchStart":1206,"redirectEnd":0,"redirectStart":0,"requestStart":1206,"responseEnd":1782.1000003814697,"responseStart":1782.1000003814697,"secureConnectionStart":1206},{"duration":557.0999994277954,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1246.2000007629395,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1246.2000007629395,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1803.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":575,"initiatorType":"script","name":"https://jira.mariadb.org/s/53a43b6764f587426c7bb9a150184c00-CDN/lu2bv2/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","startTime":1205.7000007629395,"connectEnd":1205.7000007629395,"connectStart":1205.7000007629395,"domainLookupEnd":1205.7000007629395,"domainLookupStart":1205.7000007629395,"fetchStart":1205.7000007629395,"redirectEnd":0,"redirectStart":0,"requestStart":1205.7000007629395,"responseEnd":1780.7000007629395,"responseStart":1780.7000007629395,"secureConnectionStart":1205.7000007629395}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":257,"responseStart":427,"responseEnd":441,"domLoading":431,"domInteractive":1805,"domContentLoadedEventStart":1805,"domContentLoadedEventEnd":1849,"domComplete":2254,"loadEventStart":2254,"loadEventEnd":2255,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1776},{"name":"bigPipe.sidebar-id.end","time":1776.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":1777},{"name":"bigPipe.activity-panel-pipe-id.end","time":1779.9000005722046},{"name":"activityTabFullyLoaded","time":1902.6000003814697}],"measures":[],"correlationId":"cf3c546c7b3597","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":107,"dbReadsTimeInMs":15,"dbConnsTimeInMs":24,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
It turned out to be easy enough to reproduce by running the test with repeat:
....
sys_vars.innodb_buffer_pool_load_now_basic 'innodb_plugin' [ pass ] 713
sys_vars.innodb_buffer_pool_load_now_basic 'innodb_plugin' [ pass ] 814
sys_vars.innodb_buffer_pool_load_now_basic 'innodb_plugin' [ pass ] 813
sys_vars.innodb_buffer_pool_load_now_basic 'innodb_plugin' [ fail ]
Test ended at 2016-03-12 20:10:07
CURRENT_TEST: sys_vars.innodb_buffer_pool_load_now_basic
--- /bld/10.0-release/mysql-test/suite/sys_vars/r/innodb_buffer_pool_load_now_basic.result 2016-01-17 10:16:40.000000000 -0500
+++ /bld/10.0-release/mysql-test/suite/sys_vars/r/innodb_buffer_pool_load_now_basic.reject 2016-03-12 20:10:07.434489216 -0500
@@ -3,6 +3,12 @@
@orig
0
SET GLOBAL innodb_buffer_pool_dump_now = ON;
+Timeout in wait_condition.inc for SELECT variable_value != 'Buffer pool(s) dump completed at 160312 20:09:36'
+ AND SUBSTR(variable_value, 1, 33) = 'Buffer pool(s) dump completed at '
+ FROM information_schema.global_status
+WHERE LOWER(variable_name) = 'innodb_buffer_pool_dump_status'
+Id User Host db Command Time State Info Progress
+79 root localhost test Query 0 init show full processlist 0.000
SET GLOBAL innodb_buffer_pool_load_now = ON;
SELECT variable_value
FROM information_schema.global_status
Here is what we have in the error log:
...
CURRENT_TEST: sys_vars.innodb_buffer_pool_load_now_basic
2016-03-12 20:09:35 7fd8705fb700 InnoDB: Dumping buffer pool(s) to .//ib_buffer_pool
2016-03-12 20:09:35 7fd8705fb700 InnoDB: Buffer pool(s) dump completed at 160312 20:09:35
2016-03-12 20:09:35 7fd8705fb700 InnoDB: Loading buffer pool(s) from .//ib_buffer_pool
2016-03-12 20:09:35 7fd8705fb700 InnoDB: Buffer pool(s) load completed at 160312 20:09:35
CURRENT_TEST: sys_vars.innodb_buffer_pool_load_now_basic
2016-03-12 20:09:36 7fd8705fb700 InnoDB: Dumping buffer pool(s) to .//ib_buffer_pool
2016-03-12 20:09:36 7fd8705fb700 InnoDB: Buffer pool(s) dump completed at 160312 20:09:36
2016-03-12 20:09:36 7fd8705fb700 InnoDB: Loading buffer pool(s) from .//ib_buffer_pool
2016-03-12 20:09:36 7fd8705fb700 InnoDB: Buffer pool(s) load completed at 160312 20:09:36
CURRENT_TEST: sys_vars.innodb_buffer_pool_load_now_basic
2016-03-12 20:09:36 7fd8705fb700 InnoDB: Dumping buffer pool(s) to .//ib_buffer_pool
2016-03-12 20:09:36 7fd8705fb700 InnoDB: Buffer pool(s) dump completed at 160312 20:09:36
2016-03-12 20:10:07 7fd8705fb700 InnoDB: Loading buffer pool(s) from .//ib_buffer_pool
2016-03-12 20:10:07 7fd8705fb700 InnoDB: Buffer pool(s) load completed at 160312 20:10:07
That is, the last test says the dump was performed on the same second as the previous one.
But here is what we have in the general log:
79 Query SELECT TRIM(SUBSTR('Buffer pool(s) dump completed at 160312 20:09:36', -8)) != DATE_FORMAT(CURTIME(), '%k:%i:%s')
79 Query SELECT TRIM(SUBSTR('Buffer pool(s) dump completed at 160312 20:09:36', -8)) != DATE_FORMAT(CURTIME(), '%k:%i:%s')
79 Query SELECT TRIM(SUBSTR('Buffer pool(s) dump completed at 160312 20:09:36', -8)) != DATE_FORMAT(CURTIME(), '%k:%i:%s')
79 Query SELECT TRIM(SUBSTR('Buffer pool(s) dump completed at 160312 20:09:36', -8)) != DATE_FORMAT(CURTIME(), '%k:%i:%s')
79 Query SELECT TRIM(SUBSTR('Buffer pool(s) dump completed at 160312 20:09:36', -8)) != DATE_FORMAT(CURTIME(), '%k:%i:%s')
79 Query SELECT TRIM(SUBSTR('Buffer pool(s) dump completed at 160312 20:09:36', -8)) != DATE_FORMAT(CURTIME(), '%k:%i:%s')
79 Query SELECT TRIM(SUBSTR('Buffer pool(s) dump completed at 160312 20:09:36', -8)) != DATE_FORMAT(CURTIME(), '%k:%i:%s')
160312 20:09:37 79 Query SELECT TRIM(SUBSTR('Buffer pool(s) dump completed at 160312 20:09:36', -8)) != DATE_FORMAT(CURTIME(), '%k:%i:%s')
79 Query SET GLOBAL innodb_buffer_pool_dump_now = ON
79 Query SELECT variable_value != 'Buffer pool(s) dump completed at 160312 20:09:36'
AND SUBSTR(variable_value, 1, 33) = 'Buffer pool(s) dump completed at '
FROM information_schema.global_status
So, the waiting on the current time worked perfectly – the test did wait till CURTIME switched to the next second, only only then, at 20:09:37, the dump was performed.
However, InnoDB still wrote its records to the error log with the older timestamp, and used the same for the variable value. Further failure is caused by this inconsistency.
Thinking about it, it's no news that InnoDB has its own understanding of time, but I didn't know it would affect seconds. I don't know if it's a bug, maybe it is, but it's so tiny that I doubt anybody would care fixing it. Just for accuracy, lets ask jplindst: see the explanation above – do you want to look into why InnoDB would use different time comparing to the server?
If not, I'll think of some other way to fix the test. sleep 1 also does not help here, it can hit the same problem; maybe longer sleeps could do the trick, but then again, if InnoDB can be 1 second late, maybe it can be 10 seconds late?
On a separate note, while running the test repeatedly I found out that the final part of the test, the LOAD part, also does not work properly, on a similar reason to what we had here initially: if the status variable was previously set, the last SELECT from I_S can happen too early and show an unexpected value. I'll fix it along with re-fixing the current issue.