Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
5.5(EOL) , 10.0(EOL) , 10.1(EOL) , 10.2(EOL) , 10.3(EOL) , 10.4(EOL)
CREATE PROCEDURE sp() ALTER TABLE non_existing_table OPTIMIZE PARTITION p0;
CALL sp;
SELECT 1;
# Cleanup
DROP PROCEDURE sp;
Actual result
MariaDB [test]> CREATE PROCEDURE sp() ALTER TABLE non_existing_table OPTIMIZE PARTITION p0;
Query OK, 0 rows affected (0.04 sec)
MariaDB [test]> CALL sp;
+ -------------------------+----------+----------+-----------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+ -------------------------+----------+----------+-----------------------------------------------+
| test.non_existing_table | optimize | Error | Table 'test.non_existing_table' doesn't exist |
| test.non_existing_table | optimize | status | Operation failed |
+ -------------------------+----------+----------+-----------------------------------------------+
2 rows in set (0.00 sec)
MariaDB [test]> select 1;
ERROR 2013 (HY000): Lost connection to MySQL server during query
Another example:
CREATE PROCEDURE sp() SHOW USER_STATISTICS;
CALL sp;
SELECT "Still here" AS check_alive;
# Cleanup
DROP PROCEDURE sp;
The server doesn't crash, it's really just a connection loss.
The problem is also reproducible with 10.1 client + 10.2+ server, but does not seem to be reproducible with 10.2 client + 10.1 server (or 10.2 + 10.2 and higher).
However, 10.2+ shows a different problem on the same test case, but with --ps-protocol :
CREATE PROCEDURE sp() ALTER TABLE non_existing_table OPTIMIZE PARTITION p0;
CALL sp;
Table Op Msg_type Msg_text
test.non_existing_table optimize Error Table 'test.non_existing_table' doesn't exist
test.non_existing_table optimize status Operation failed
SELECT 1;
bug2.ps1d [ fail ]
Test ended at 2019-03-14 19:19:43
CURRENT_TEST: bug2.ps1d
mysqltest: At line 3: query 'SELECT 1' failed: 2031: No data supplied for parameters in prepared statement
relates to
MDEV-15800
Assertion `next_insert_id >= auto_inc_interval_for_cur_row.minimum()' failed in update_auto_increment() or unexpected ER_LOCK_DEADLOCK upon LOAD or INSERT
Closed
{"report":{"fcp":833.8999999761581,"ttfb":226.5,"pageVisibility":"visible","entityId":70598,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"2586cefe-c16d-4f80-9ea2-217f54668ddc","navigationType":0,"readyForUser":954.6000000238419,"redirectCount":0,"resourceLoadedEnd":558.2999999523163,"resourceLoadedStart":236,"resourceTiming":[{"duration":18.700000047683716,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":236,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":236,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":254.70000004768372,"responseStart":0,"secureConnectionStart":0},{"duration":18.90000009536743,"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":236.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":236.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":255.20000004768372,"responseStart":0,"secureConnectionStart":0},{"duration":203.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":236.5,"connectEnd":236.5,"connectStart":236.5,"domainLookupEnd":236.5,"domainLookupStart":236.5,"fetchStart":236.5,"redirectEnd":0,"redirectStart":0,"requestStart":259.7000000476837,"responseEnd":439.60000002384186,"responseStart":288.7999999523163,"secureConnectionStart":236.5},{"duration":321.59999990463257,"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":236.70000004768372,"connectEnd":236.70000004768372,"connectStart":236.70000004768372,"domainLookupEnd":236.70000004768372,"domainLookupStart":236.70000004768372,"fetchStart":236.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":261.39999997615814,"responseEnd":558.2999999523163,"responseStart":292.2999999523163,"secureConnectionStart":236.70000004768372},{"duration":59.800000071525574,"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":236.79999995231628,"connectEnd":236.79999995231628,"connectStart":236.79999995231628,"domainLookupEnd":236.79999995231628,"domainLookupStart":236.79999995231628,"fetchStart":236.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":261.5,"responseEnd":296.60000002384186,"responseStart":294.2000000476837,"secureConnectionStart":236.79999995231628},{"duration":61.799999952316284,"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":237,"connectEnd":237,"connectStart":237,"domainLookupEnd":237,"domainLookupStart":237,"fetchStart":237,"redirectEnd":0,"redirectStart":0,"requestStart":262.2000000476837,"responseEnd":298.7999999523163,"responseStart":295.7000000476837,"secureConnectionStart":237},{"duration":61.39999997615814,"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":237.20000004768372,"connectEnd":237.20000004768372,"connectStart":237.20000004768372,"domainLookupEnd":237.20000004768372,"domainLookupStart":237.20000004768372,"fetchStart":237.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":262.5,"responseEnd":298.60000002384186,"responseStart":295.2000000476837,"secureConnectionStart":237.20000004768372},{"duration":23.300000071525574,"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":237.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":237.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":260.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":62.200000047683716,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":237.5,"connectEnd":237.5,"connectStart":237.5,"domainLookupEnd":237.5,"domainLookupStart":237.5,"fetchStart":237.5,"redirectEnd":0,"redirectStart":0,"requestStart":264.89999997615814,"responseEnd":299.7000000476837,"responseStart":297.60000002384186,"secureConnectionStart":237.5},{"duration":24.09999990463257,"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":237.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":237.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":261.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":61.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":237.89999997615814,"connectEnd":237.89999997615814,"connectStart":237.89999997615814,"domainLookupEnd":237.89999997615814,"domainLookupStart":237.89999997615814,"fetchStart":237.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":266.39999997615814,"responseEnd":299.39999997615814,"responseStart":296.7999999523163,"secureConnectionStart":237.89999997615814},{"duration":299.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":242.60000002384186,"connectEnd":242.60000002384186,"connectStart":242.60000002384186,"domainLookupEnd":242.60000002384186,"domainLookupStart":242.60000002384186,"fetchStart":242.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":300.2000000476837,"responseEnd":542.1000000238419,"responseStart":536.2000000476837,"secureConnectionStart":242.60000002384186},{"duration":299.7999999523163,"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":242.70000004768372,"connectEnd":242.70000004768372,"connectStart":242.70000004768372,"domainLookupEnd":242.70000004768372,"domainLookupStart":242.70000004768372,"fetchStart":242.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":316.39999997615814,"responseEnd":542.5,"responseStart":537.3999999761581,"secureConnectionStart":242.70000004768372},{"duration":101.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":585.2999999523163,"connectEnd":585.2999999523163,"connectStart":585.2999999523163,"domainLookupEnd":585.2999999523163,"domainLookupStart":585.2999999523163,"fetchStart":585.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":652.3999999761581,"responseEnd":687.2000000476837,"responseStart":686.2999999523163,"secureConnectionStart":585.2999999523163},{"duration":190,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":825.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":825.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1015.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":209.60000002384186,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":833.3999999761581,"connectEnd":833.3999999761581,"connectStart":833.3999999761581,"domainLookupEnd":833.3999999761581,"domainLookupStart":833.3999999761581,"fetchStart":833.3999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":1013.2000000476837,"responseEnd":1043,"responseStart":1042.1000000238419,"secureConnectionStart":833.3999999761581}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":36,"responseStart":226,"responseEnd":242,"domLoading":229,"domInteractive":1018,"domContentLoadedEventStart":1018,"domContentLoadedEventEnd":1065,"domComplete":1471,"loadEventStart":1471,"loadEventEnd":1471,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":995.3999999761581},{"name":"bigPipe.sidebar-id.end","time":996.1000000238419},{"name":"bigPipe.activity-panel-pipe-id.start","time":996.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":997.5},{"name":"activityTabFullyLoaded","time":1086.7999999523163}],"measures":[],"correlationId":"e1f985c58adf93","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":111,"dbReadsTimeInMs":12,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Assigning to serg for dispatching, I don't know to whom it should belong, if anyone.