Fails in buildbot:
https://internal.askmonty.org/buildbot/builders/kvm-rpm-centos74-amd64-debug/builds/2322/steps/mtr/logs/stdio
rocksdb.group_min_max 'write_prepared' w1 [ fail ] timeout after 900 seconds
|
Test ended at 2019-07-20 08:48:31
|
|
Test case timeout after 900 seconds
|
|
== /dev/shm/var/1/log/group_min_max.log ==
|
d b a
|
d b b
|
select distinct a1,a2,b from t1 where (a2 >= 'b') and (b = 'a');
|
a1 a2 b
|
a b a
|
b b a
|
c b a
|
d b a
|
select distinct a1,a2,b,c from t1 where (a2 >= 'b') and (b = 'a') and (c = 'i121');
|
a1 a2 b c
|
a b a i121
|
select distinct a1,a2,b from t1 where (a1 > 'a') and (a2 > 'a') and (b = 'c');
|
a1 a2 b
|
select distinct b from t1 where (a2 >= 'b') and (b = 'a');
|
b
|
a
|
select distinct a1 from t1 where a1 in ('a', 'd') and a2 = 'b';
|
a1
|
a
|
select distinct a1 from t1 where a1 in ('a', 'd') and a2 = 'e';
|
|
== /dev/shm/var/1/tmp/analyze-timeout-mysqld.1.err ==
|
mysqltest: Could not open connection 'default' after 500 attempts: 2002 Can't connect to local MySQL server through socket '/dev/shm/var/tmp/1/mysqld.1.sock' (111)
|
|
{"report":{"fcp":690.2999999523163,"ttfb":190,"pageVisibility":"visible","entityId":77691,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"66f46db8-98ee-496b-8508-ba10a90ff8a3","navigationType":0,"readyForUser":819.5,"redirectCount":0,"resourceLoadedEnd":817.3999999761581,"resourceLoadedStart":195.5,"resourceTiming":[{"duration":12.200000047683716,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":195.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":195.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":207.70000004768372,"responseStart":0,"secureConnectionStart":0},{"duration":12.800000071525574,"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":195.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":195.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":208.60000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":81.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":195.79999995231628,"connectEnd":195.79999995231628,"connectStart":195.79999995231628,"domainLookupEnd":195.79999995231628,"domainLookupStart":195.79999995231628,"fetchStart":195.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":195.79999995231628,"responseEnd":277,"responseStart":277,"secureConnectionStart":195.79999995231628},{"duration":174.70000004768372,"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":196,"connectEnd":196,"connectStart":196,"domainLookupEnd":196,"domainLookupStart":196,"fetchStart":196,"redirectEnd":0,"redirectStart":0,"requestStart":196,"responseEnd":370.7000000476837,"responseStart":370.7000000476837,"secureConnectionStart":196},{"duration":178.29999995231628,"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":196.10000002384186,"connectEnd":196.10000002384186,"connectStart":196.10000002384186,"domainLookupEnd":196.10000002384186,"domainLookupStart":196.10000002384186,"fetchStart":196.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":196.10000002384186,"responseEnd":374.39999997615814,"responseStart":374.39999997615814,"secureConnectionStart":196.10000002384186},{"duration":178.69999992847443,"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":196.20000004768372,"connectEnd":196.20000004768372,"connectStart":196.20000004768372,"domainLookupEnd":196.20000004768372,"domainLookupStart":196.20000004768372,"fetchStart":196.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":196.20000004768372,"responseEnd":374.89999997615814,"responseStart":374.89999997615814,"secureConnectionStart":196.20000004768372},{"duration":179.09999990463257,"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":196.20000004768372,"connectEnd":196.20000004768372,"connectStart":196.20000004768372,"domainLookupEnd":196.20000004768372,"domainLookupStart":196.20000004768372,"fetchStart":196.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":196.20000004768372,"responseEnd":375.2999999523163,"responseStart":375.2999999523163,"secureConnectionStart":196.20000004768372},{"duration":179.70000004768372,"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":196.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":196.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":376,"responseStart":0,"secureConnectionStart":0},{"duration":179.30000007152557,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":196.39999997615814,"connectEnd":196.39999997615814,"connectStart":196.39999997615814,"domainLookupEnd":196.39999997615814,"domainLookupStart":196.39999997615814,"fetchStart":196.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":196.39999997615814,"responseEnd":375.7000000476837,"responseStart":375.7000000476837,"secureConnectionStart":196.39999997615814},{"duration":179.60000002384186,"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":196.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":196.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":376.10000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":179.5,"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":196.70000004768372,"connectEnd":196.70000004768372,"connectStart":196.70000004768372,"domainLookupEnd":196.70000004768372,"domainLookupStart":196.70000004768372,"fetchStart":196.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":196.70000004768372,"responseEnd":376.2000000476837,"responseStart":376.2000000476837,"secureConnectionStart":196.70000004768372},{"duration":463.5,"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":197.29999995231628,"connectEnd":197.29999995231628,"connectStart":197.29999995231628,"domainLookupEnd":197.29999995231628,"domainLookupStart":197.29999995231628,"fetchStart":197.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":197.29999995231628,"responseEnd":660.7999999523163,"responseStart":660.7999999523163,"secureConnectionStart":197.29999995231628},{"duration":519.4000000953674,"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":202.29999995231628,"connectEnd":202.29999995231628,"connectStart":202.29999995231628,"domainLookupEnd":202.29999995231628,"domainLookupStart":202.29999995231628,"fetchStart":202.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":202.29999995231628,"responseEnd":721.7000000476837,"responseStart":721.7000000476837,"secureConnectionStart":202.29999995231628},{"duration":231.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":429.60000002384186,"connectEnd":429.60000002384186,"connectStart":429.60000002384186,"domainLookupEnd":429.60000002384186,"domainLookupStart":429.60000002384186,"fetchStart":429.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":429.60000002384186,"responseEnd":661.1000000238419,"responseStart":661.1000000238419,"secureConnectionStart":429.60000002384186},{"duration":66.60000002384186,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":683,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":683,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":749.6000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":101.89999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/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":707.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":707.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":809.3999999761581,"responseStart":0,"secureConnectionStart":0},{"duration":101.60000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/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":708.3999999761581,"connectEnd":708.3999999761581,"connectStart":708.3999999761581,"domainLookupEnd":708.3999999761581,"domainLookupStart":708.3999999761581,"fetchStart":708.3999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":708.3999999761581,"responseEnd":810,"responseStart":810,"secureConnectionStart":708.3999999761581},{"duration":108.60000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/f51ef5507eea4c158f257c66c93b2a3f-CDN/lu2bu7/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":708.7999999523163,"connectEnd":708.7999999523163,"connectStart":708.7999999523163,"domainLookupEnd":708.7999999523163,"domainLookupStart":708.7999999523163,"fetchStart":708.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":708.7999999523163,"responseEnd":817.3999999761581,"responseStart":817.2999999523163,"secureConnectionStart":708.7999999523163}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":15,"responseStart":189,"responseEnd":195,"domLoading":193,"domInteractive":905,"domContentLoadedEventStart":905,"domContentLoadedEventEnd":966,"domComplete":1170,"loadEventStart":1170,"loadEventEnd":1170,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":856.7000000476837},{"name":"bigPipe.sidebar-id.end","time":857.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":857.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":862.2000000476837},{"name":"activityTabFullyLoaded","time":983.5}],"measures":[],"correlationId":"a4ef7227677903","effectiveType":"4g","downlink":9.2,"rtt":0,"serverDuration":107,"dbReadsTimeInMs":10,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
The patch in upstream that we are missing:
commit 98b0d40af27051ded465a5ca81fac8e3110cc2c1
Author: Manuel Ung <mung@fb.com> Tue Mar 19 16:44:54 2019
Committer: Facebook Github Bot <facebook-github-bot@users.noreply.github.com> Fri Apr 5 22:13:46 2019
Fix error handling in group by plans
Summary:
For certain GROUP BY plans, the QUICK_RANGE_SELECT class is used to iterate through all possible prefixes that form a group. The current iteration process calls read_range_first with both a start and end range, and then iterates until we've moved past the end range. However, the storage engine may choose to honour the end range (because of index condition pushdown, rocksdb iterator bounds, or rocksdb prefix seek mode) and return HA_ERR_KEY_NOT_FOUND or HA_ERR_END_OF_FILE instead. Instead of moving onto the next range, this causes the QUICK_RANGE_SELECT::get_next_prefix to return early without actually advancing onto the next prefix. This can cause an infinite loop in QUICK_GROUP_MIN_MAX_SELECT::get_next, or QUICK_GROUP_MIN_MAX_SELECT::get_next to return HA_ERR_END_OF_FILE too early.
The fix is to detect if HA_ERR_KEY_NOT_FOUND or HA_ERR_END_OF_FILE is returned, and continue onto the next range instead of returning early.
Reviewed By: hermanlee
Differential Revision: D14521084
fbshipit-source-id: 6963b17081f