Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
None
This test is (in 10.0.2 at least) unstable. Sometimes SELECT returns incorrect number of pages, namely from before the operation. But if the test is modified to repeat the same SELECT many (e.g. 10) times, then one can see that the number of pages eventually changes to the correct one. There's obviously a race condition here.
One way of fixing the test is to use include/wait_condition.inc and wait for the number of pages to reach the correct value. If the test times out, it would mean a bug.
causes
MDEV-11802
innodb.innodb_bug14676111 fails in buildbot due to InnoDB purge failing to start when there is work to do
Closed
{"report":{"fcp":807.2999999523163,"ttfb":158.90000009536743,"pageVisibility":"visible","entityId":23700,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":1,"journeyId":"adc60975-8d0e-483a-adf8-eb21fc6d8635","navigationType":0,"readyForUser":862.0999999046326,"redirectCount":0,"resourceLoadedEnd":485.40000009536743,"resourceLoadedStart":170.29999995231628,"resourceTiming":[{"duration":23.299999952316284,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":170.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":170.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":193.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":28.299999952316284,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":170.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":170.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":198.79999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":212.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":170.70000004768372,"connectEnd":170.70000004768372,"connectStart":170.70000004768372,"domainLookupEnd":170.70000004768372,"domainLookupStart":170.70000004768372,"fetchStart":170.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":202.09999990463257,"responseEnd":383.40000009536743,"responseStart":260.90000009536743,"secureConnectionStart":170.70000004768372},{"duration":304.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":170.70000004768372,"connectEnd":170.70000004768372,"connectStart":170.70000004768372,"domainLookupEnd":170.70000004768372,"domainLookupStart":170.70000004768372,"fetchStart":170.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":204.20000004768372,"responseEnd":475,"responseStart":259.2999999523163,"secureConnectionStart":170.70000004768372},{"duration":31.799999952316284,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":170.79999995231628,"connectEnd":170.79999995231628,"connectStart":170.79999995231628,"domainLookupEnd":170.79999995231628,"domainLookupStart":170.79999995231628,"fetchStart":170.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":170.79999995231628,"responseEnd":202.59999990463257,"responseStart":202.59999990463257,"secureConnectionStart":170.79999995231628},{"duration":68.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":170.90000009536743,"connectEnd":170.90000009536743,"connectStart":170.90000009536743,"domainLookupEnd":170.90000009536743,"domainLookupStart":170.90000009536743,"fetchStart":170.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":211.29999995231628,"responseEnd":239.70000004768372,"responseStart":236.59999990463257,"secureConnectionStart":170.90000009536743},{"duration":68.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":171,"connectEnd":171,"connectStart":171,"domainLookupEnd":171,"domainLookupStart":171,"fetchStart":171,"redirectEnd":0,"redirectStart":0,"requestStart":211.29999995231628,"responseEnd":239.90000009536743,"responseStart":237.29999995231628,"secureConnectionStart":171},{"duration":39.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":171.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":171.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":210.5,"responseStart":0,"secureConnectionStart":0},{"duration":68.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":171.20000004768372,"connectEnd":171.20000004768372,"connectStart":171.20000004768372,"domainLookupEnd":171.20000004768372,"domainLookupStart":171.20000004768372,"fetchStart":171.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":213.70000004768372,"responseEnd":240,"responseStart":237.90000009536743,"secureConnectionStart":171.20000004768372},{"duration":42,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":171.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":171.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":213.29999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":89.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":171.5,"connectEnd":171.5,"connectStart":171.5,"domainLookupEnd":171.5,"domainLookupStart":171.5,"fetchStart":171.5,"redirectEnd":0,"redirectStart":0,"requestStart":219.59999990463257,"responseEnd":260.59999990463257,"responseStart":258.59999990463257,"secureConnectionStart":171.5},{"duration":311,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":172.09999990463257,"connectEnd":172.09999990463257,"connectStart":172.09999990463257,"domainLookupEnd":172.09999990463257,"domainLookupStart":172.09999990463257,"fetchStart":172.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":235.29999995231628,"responseEnd":483.09999990463257,"responseStart":477,"secureConnectionStart":172.09999990463257},{"duration":313.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":172.20000004768372,"connectEnd":172.20000004768372,"connectStart":172.20000004768372,"domainLookupEnd":172.20000004768372,"domainLookupStart":172.20000004768372,"fetchStart":172.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":246.20000004768372,"responseEnd":485.40000009536743,"responseStart":479.5,"secureConnectionStart":172.20000004768372},{"duration":270.39999985694885,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":602.4000000953674,"connectEnd":602.4000000953674,"connectStart":602.4000000953674,"domainLookupEnd":602.4000000953674,"domainLookupStart":602.4000000953674,"fetchStart":602.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":842.7999999523163,"responseEnd":872.7999999523163,"responseStart":872.0999999046326,"secureConnectionStart":602.4000000953674},{"duration":139.70000004768372,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":783.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":783.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":923.5,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":22,"responseStart":159,"responseEnd":169,"domLoading":167,"domInteractive":958,"domContentLoadedEventStart":958,"domContentLoadedEventEnd":1017,"domComplete":1516,"loadEventStart":1516,"loadEventEnd":1517,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":933.9000000953674},{"name":"bigPipe.sidebar-id.end","time":934.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":934.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":936.7999999523163},{"name":"activityTabFullyLoaded","time":1035.2000000476837}],"measures":[],"correlationId":"a8ea719ca6b663","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":75,"dbReadsTimeInMs":10,"dbConnsTimeInMs":16,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
I do not understand the suggested fix. All the failures I see in the buildbot test failure database start with this:
+Timeout in wait_condition.inc for SELECT VARIABLE_VALUE < 1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS
+WHERE VARIABLE_NAME = 'INNODB_PURGE_TRX_ID_AGE'
+Id User Host db Command Time State Info Progress
+1 root localhost test Query 0 NULL show full processlist 0.000
So there is already a timeout in a wait_condition, I do not understand how adding another condition can fix this?