Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
5.5(EOL), 10.0(EOL), 10.1(EOL), 10.2(EOL), 10.3(EOL), 10.4(EOL)
Description
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
|
Attachments
Issue Links
- 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