Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
MDEV-26544 Assertion `part_share->auto_inc_initialized' failed in ha_…
…partition::get_auto_increment on INSERT The partition storage engine ignores return (error) values of handler::info(). As a result, a query that should be aborted is not aborted and then the server violates the assertion.
- Loading branch information
1 parent
4bc7c03
commit 2f3f1cd
Showing
5 changed files
with
81 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # | ||
| # MDEV-26544 Assertion `part_share->auto_inc_initialized' failed in ha_partition::get_auto_increment on INSERT | ||
| # | ||
| for master_1 | ||
| for child2 | ||
| for child3 | ||
| connection master_1; | ||
| CREATE DATABASE auto_test_remote; | ||
| USE auto_test_remote; | ||
| CREATE TABLE `tbl_a` ( | ||
| `a` INT AUTO_INCREMENT, KEY(`a`) | ||
| ) ENGINE=Spider DEFAULT CHARSET=utf8 | ||
| PARTITION BY LIST COLUMNS (`a`) ( | ||
| PARTITION `pt1` DEFAULT | ||
| ); | ||
| INSERT INTO tbl_a (a) VALUES (0); | ||
| ERROR HY000: Unable to connect to foreign data source: localhost | ||
| INSERT INTO tbl_a () VALUES (); | ||
| ERROR HY000: Unable to connect to foreign data source: localhost | ||
| DROP DATABASE IF EXISTS auto_test_remote; | ||
| for master_1 | ||
| for child2 | ||
| for child3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| !include include/default_mysqld.cnf | ||
| !include ../my_1_1.cnf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| --echo # | ||
| --echo # MDEV-26544 Assertion `part_share->auto_inc_initialized' failed in ha_partition::get_auto_increment on INSERT | ||
| --echo # | ||
|
|
||
| --disable_query_log | ||
| --disable_result_log | ||
| --source ../../t/test_init.inc | ||
| --enable_result_log | ||
| --enable_query_log | ||
|
|
||
| --connection master_1 | ||
| CREATE DATABASE auto_test_remote; | ||
| USE auto_test_remote; | ||
|
|
||
| eval CREATE TABLE `tbl_a` ( | ||
| `a` INT AUTO_INCREMENT, KEY(`a`) | ||
| ) $MASTER_1_ENGINE $MASTER_1_CHARSET | ||
| PARTITION BY LIST COLUMNS (`a`) ( | ||
| PARTITION `pt1` DEFAULT | ||
| ); | ||
| --error ER_CONNECT_TO_FOREIGN_DATA_SOURCE | ||
| INSERT INTO tbl_a (a) VALUES (0); | ||
| --error ER_CONNECT_TO_FOREIGN_DATA_SOURCE | ||
| INSERT INTO tbl_a () VALUES (); | ||
|
|
||
| DROP DATABASE IF EXISTS auto_test_remote; | ||
|
|
||
| --disable_query_log | ||
| --disable_result_log | ||
| --source ../../t/test_deinit.inc | ||
| --enable_result_log | ||
| --enable_query_log |