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
-
Activity
Field | Original Value | New Value |
---|---|---|
Link |
This issue relates to |
Assignee | Sergei Golubchik [ serg ] | |
Description |
{code:sql}
CREATE PROCEDURE sp() ALTER TABLE non_existing_table OPTIMIZE PARTITION p0; CALL sp; SELECT 1; # Cleanup DROP PROCEDURE sp; {code} {code:sql|title=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 {code} 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). |
{code:sql}
CREATE PROCEDURE sp() ALTER TABLE non_existing_table OPTIMIZE PARTITION p0; CALL sp; SELECT 1; # Cleanup DROP PROCEDURE sp; {code} {code:sql|title=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 {code} 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). Another example: {code:sql} CREATE PROCEDURE sp() SHOW USER_STATISTICS; CALL sp; SELECT "Still here" AS check_alive; # Cleanup DROP PROCEDURE sp; {code} |
Summary | Unexpected connection abort after failed OPTIMIZE PARTITION within stored procedure | Unexpected connection abort after failed certain operations from within stored procedure |
Summary | Unexpected connection abort after failed certain operations from within stored procedure | Unexpected connection abort after certain operations from within stored procedure |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Affects Version/s | 10.2 [ 14601 ] | |
Affects Version/s | 10.3 [ 22126 ] | |
Affects Version/s | 10.4 [ 22408 ] | |
Description |
{code:sql}
CREATE PROCEDURE sp() ALTER TABLE non_existing_table OPTIMIZE PARTITION p0; CALL sp; SELECT 1; # Cleanup DROP PROCEDURE sp; {code} {code:sql|title=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 {code} 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). Another example: {code:sql} CREATE PROCEDURE sp() SHOW USER_STATISTICS; CALL sp; SELECT "Still here" AS check_alive; # Cleanup DROP PROCEDURE sp; {code} |
{code:sql}
CREATE PROCEDURE sp() ALTER TABLE non_existing_table OPTIMIZE PARTITION p0; CALL sp; SELECT 1; # Cleanup DROP PROCEDURE sp; {code} {code:sql|title=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 {code} Another example: {code:sql} CREATE PROCEDURE sp() SHOW USER_STATISTICS; CALL sp; SELECT "Still here" AS check_alive; # Cleanup DROP PROCEDURE sp; {code} 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}}: {code:sql} 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 {code} |
Description |
{code:sql}
CREATE PROCEDURE sp() ALTER TABLE non_existing_table OPTIMIZE PARTITION p0; CALL sp; SELECT 1; # Cleanup DROP PROCEDURE sp; {code} {code:sql|title=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 {code} Another example: {code:sql} CREATE PROCEDURE sp() SHOW USER_STATISTICS; CALL sp; SELECT "Still here" AS check_alive; # Cleanup DROP PROCEDURE sp; {code} 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}}: {code:sql} 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 {code} |
{code:sql}
CREATE PROCEDURE sp() ALTER TABLE non_existing_table OPTIMIZE PARTITION p0; CALL sp; SELECT 1; # Cleanup DROP PROCEDURE sp; {code} {code:sql|title=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 {code} Another example: {code:sql} CREATE PROCEDURE sp() SHOW USER_STATISTICS; CALL sp; SELECT "Still here" AS check_alive; # Cleanup DROP PROCEDURE sp; {code} 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}}: {noformat} 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 {noformat} |
Description |
{code:sql}
CREATE PROCEDURE sp() ALTER TABLE non_existing_table OPTIMIZE PARTITION p0; CALL sp; SELECT 1; # Cleanup DROP PROCEDURE sp; {code} {code:sql|title=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 {code} Another example: {code:sql} CREATE PROCEDURE sp() SHOW USER_STATISTICS; CALL sp; SELECT "Still here" AS check_alive; # Cleanup DROP PROCEDURE sp; {code} 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}}: {noformat} 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 {noformat} |
{code:sql}
CREATE PROCEDURE sp() ALTER TABLE non_existing_table OPTIMIZE PARTITION p0; CALL sp; SELECT 1; # Cleanup DROP PROCEDURE sp; {code} {code:sql|title=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 {code} Another example: {code:sql} CREATE PROCEDURE sp() SHOW USER_STATISTICS; CALL sp; SELECT "Still here" AS check_alive; # Cleanup DROP PROCEDURE sp; {code} 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}}: {noformat} 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 {noformat} |
Component/s | Prepared Statements [ 10804 ] |
Labels | affects-tests |
Assignee | Sergei Golubchik [ serg ] | Vladislav Vaintroub [ wlad ] |
issue.field.resolutiondate | 2019-04-04 14:52:45.0 | 2019-04-04 14:52:45.813 |
Fix Version/s | 5.5.64 [ 23303 ] | |
Fix Version/s | 10.1.39 [ 23305 ] | |
Fix Version/s | 10.2.24 [ 23308 ] | |
Fix Version/s | 10.3.15 [ 23309 ] | |
Fix Version/s | 10.4.4 [ 23310 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 5.5 [ 15800 ] | |
Fix Version/s | 10.0 [ 16000 ] | |
Fix Version/s | 10.1 [ 16100 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Workflow | MariaDB v3 [ 90413 ] | MariaDB v4 [ 155147 ] |
Assigning to serg for dispatching, I don't know to whom it should belong, if anyone.