-
Bug
-
-
Critical
-
Resolution:
Fixed
-
N/A
-
-
-
There was a bug in feature MDEV-30469 for some conditions and after fix MDEV-35568 the behavior became even more strange:
Example case:
create table t1 (id int primary key, v int);
|
create table t2 (id int primary key, v int);
|
insert into t1 (id, v) values (2,3),(1,4);
|
insert into t2 (id, v) values (5,5),(6,6);
|
select * from t1;
|
id v
|
2 3
|
1 4
|
select * from t2;
|
id v
|
5 5
|
6 6
|
select t1.*, t2.* from t1, t2 order by t1.id, t2.id;
|
id v id v
|
1 4 5 5
|
1 4 6 6
|
2 3 5 5
|
2 3 6 6
|
Limit 1
Result before fix (looks right):
select t1.*, t2.* from t1, t2 order by t1.id, t2.id limit 1;
|
id v id v
|
1 4 5 5
|
delete t1.*, t2.* from t1, t2 order by t1.id, t2.id limit 1;
|
select * from t1;
|
id v
|
1 4
|
select * from t2;
|
id v
|
6 6
|
Result after fix MDEV-35568(incorrect):
select t1.*, t2.* from t1, t2 order by t1.id, t2.id limit 1;
|
id v id v
|
1 4 5 5
|
delete t1.*, t2.* from t1, t2 order by t1.id, t2.id limit 1;
|
select * from t1;
|
id v
|
2 3
|
1 4
|
select * from t2;
|
id v
|
6 6
|
drop tables t1,t2;
|
Limit 2
Result before fix (I expect that two records from table t2 will be deleted, but two records from table t1 were deleted):
select t1.*, t2.* from t1, t2 order by t1.id, t2.id limit 2;
|
id v id v
|
1 4 5 5
|
1 4 6 6
|
delete t1.*, t2.* from t1, t2 order by t1.id, t2.id limit 2;
|
select * from t1;
|
id v
|
select * from t2;
|
id v
|
6 6
|
Result after fix MDEV-35568(incorrect: nothing has changed compared to the previous request "limit 1"):
select t1.*, t2.* from t1, t2 order by t1.id, t2.id limit 2;
|
id v id v
|
1 4 5 5
|
1 4 6 6
|
delete t1.*, t2.* from t1, t2 order by t1.id, t2.id limit 2;
|
select * from t1;
|
id v
|
2 3
|
1 4
|
select * from t2;
|
id v
|
6 6
|
Limit 3
Result before fix (looks right):
select t1.*, t2.* from t1, t2 order by t1.id, t2.id limit 3;
|
id v id v
|
1 4 5 5
|
1 4 6 6
|
2 3 5 5
|
delete t1.*, t2.* from t1, t2 order by t1.id, t2.id limit 3;
|
select * from t1;
|
id v
|
select * from t2;
|
id v
|
Result after fix MDEV-35568(incorrect: this behavior continues for other "limit n", n>3 ):
select t1.*, t2.* from t1, t2 order by t1.id, t2.id limit 3;
|
id v id v
|
1 4 5 5
|
1 4 6 6
|
2 3 5 5
|
delete t1.*, t2.* from t1, t2 order by t1.id, t2.id limit 3;
|
select * from t1;
|
id v
|
2 3
|
1 4
|
select * from t2;
|
id v
|
{"report":{"fcp":1046.5,"ttfb":215.19999980926514,"pageVisibility":"visible","entityId":132386,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"904e280c-a2db-48ae-8f13-c739ce055ce0","navigationType":0,"readyForUser":1175.6999998092651,"redirectCount":0,"resourceLoadedEnd":734,"resourceLoadedStart":248,"resourceTiming":[{"duration":37.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":248,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":248,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":285.5,"responseStart":0,"secureConnectionStart":0},{"duration":38.09999990463257,"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":248.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":248.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":286.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":298.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":248.69999980926514,"connectEnd":248.69999980926514,"connectStart":248.69999980926514,"domainLookupEnd":248.69999980926514,"domainLookupStart":248.69999980926514,"fetchStart":248.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":290.09999990463257,"responseEnd":547,"responseStart":325.5,"secureConnectionStart":248.69999980926514},{"duration":485,"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":249,"connectEnd":249,"connectStart":249,"domainLookupEnd":249,"domainLookupStart":249,"fetchStart":249,"redirectEnd":0,"redirectStart":0,"requestStart":290.39999985694885,"responseEnd":734,"responseStart":326.19999980926514,"secureConnectionStart":249},{"duration":87.10000014305115,"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":249.19999980926514,"connectEnd":249.19999980926514,"connectStart":249.19999980926514,"domainLookupEnd":249.19999980926514,"domainLookupStart":249.19999980926514,"fetchStart":249.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":290.59999990463257,"responseEnd":336.2999999523163,"responseStart":331.7999999523163,"secureConnectionStart":249.19999980926514},{"duration":87.20000004768372,"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":249.39999985694885,"connectEnd":249.39999985694885,"connectStart":249.39999985694885,"domainLookupEnd":249.39999985694885,"domainLookupStart":249.39999985694885,"fetchStart":249.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":290.59999990463257,"responseEnd":336.59999990463257,"responseStart":333.2999999523163,"secureConnectionStart":249.39999985694885},{"duration":92.80000019073486,"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":249.69999980926514,"connectEnd":249.69999980926514,"connectStart":249.69999980926514,"domainLookupEnd":249.69999980926514,"domainLookupStart":249.69999980926514,"fetchStart":249.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":299.2999999523163,"responseEnd":342.5,"responseStart":337.19999980926514,"secureConnectionStart":249.69999980926514},{"duration":41,"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":249.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":249.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":290.89999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":92.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":250.09999990463257,"connectEnd":250.09999990463257,"connectStart":250.09999990463257,"domainLookupEnd":250.09999990463257,"domainLookupStart":250.09999990463257,"fetchStart":250.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":299.5,"responseEnd":342.7999999523163,"responseStart":338.19999980926514,"secureConnectionStart":250.09999990463257},{"duration":43.299999952316284,"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":250.39999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":250.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":293.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":94.10000014305115,"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":250.69999980926514,"connectEnd":250.69999980926514,"connectStart":250.69999980926514,"domainLookupEnd":250.69999980926514,"domainLookupStart":250.69999980926514,"fetchStart":250.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":299.69999980926514,"responseEnd":344.7999999523163,"responseStart":342.89999985694885,"secureConnectionStart":250.69999980926514},{"duration":396.30000019073486,"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":265.19999980926514,"connectEnd":265.19999980926514,"connectStart":265.19999980926514,"domainLookupEnd":265.19999980926514,"domainLookupStart":265.19999980926514,"fetchStart":265.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":322.2999999523163,"responseEnd":661.5,"responseStart":639.1999998092651,"secureConnectionStart":265.19999980926514},{"duration":396.89999985694885,"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":265.2999999523163,"connectEnd":265.2999999523163,"connectStart":265.2999999523163,"domainLookupEnd":265.2999999523163,"domainLookupStart":265.2999999523163,"fetchStart":265.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":336.89999985694885,"responseEnd":662.1999998092651,"responseStart":642.8999998569489,"secureConnectionStart":265.2999999523163},{"duration":157.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":761.2999999523163,"connectEnd":761.2999999523163,"connectStart":761.2999999523163,"domainLookupEnd":761.2999999523163,"domainLookupStart":761.2999999523163,"fetchStart":761.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":889.1999998092651,"responseEnd":918.7999999523163,"responseStart":918.1999998092651,"secureConnectionStart":761.2999999523163},{"duration":181.69999980926514,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1039.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1039.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1221.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":208.70000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1046.5999999046326,"connectEnd":1046.5999999046326,"connectStart":1046.5999999046326,"domainLookupEnd":1046.5999999046326,"domainLookupStart":1046.5999999046326,"fetchStart":1046.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1225.5,"responseEnd":1255.2999999523163,"responseStart":1254.5999999046326,"secureConnectionStart":1046.5999999046326}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":53,"responseStart":215,"responseEnd":264,"domLoading":229,"domInteractive":1380,"domContentLoadedEventStart":1380,"domContentLoadedEventEnd":1456,"domComplete":1659,"loadEventStart":1659,"loadEventEnd":1659,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1341.0999999046326},{"name":"bigPipe.sidebar-id.end","time":1342},{"name":"bigPipe.activity-panel-pipe-id.start","time":1342.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":1343.2999999523163},{"name":"activityTabFullyLoaded","time":1472.1999998092651}],"measures":[],"correlationId":"6ef9b220e8b4e6","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":81,"dbReadsTimeInMs":16,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
OK to push