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-26597 : Assertion `!wsrep_has_changes(thd) || (thd->lex->sql_com…
…mand == SQLCOM_CREATE_TABLE && !thd->is_current_stmt_binlog_format_row())' failed. If repl.max_ws_size is set too low following CREATE TABLE could fail during commit. In this case wsrep_commit_empty should allow rolling it back if provider state is s_aborted. Furhermore, original ER_ERROR_DURING_COMMIT does not really tell anything clear for user. Therefore, this commit adds a new error ER_TOO_BIG_WRITESET. This will change some test cases output.
- Loading branch information
Jan Lindström
committed
Oct 9, 2022
1 parent
ab3ec01
commit e8acec8
Showing
10 changed files
with
81 additions
and
16 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| connection node_2; | ||
| connection node_1; | ||
| connection node_1; | ||
| connection node_2; | ||
| connection node_2; | ||
| CREATE TABLE t3 (c1 INTEGER NOT NULL PRIMARY KEY, c2 FLOAT(3,2)); | ||
| SET GLOBAL wsrep_provider_options = 'repl.max_ws_size=512'; | ||
| SET @@autocommit=0; | ||
| INSERT INTO t3 VALUES (1000,0.00),(1001,0.25),(1002,0.50),(1003,0.75),(1008,1.00),(1009,1.25),(1010,1.50),(1011,1.75); | ||
| CREATE TABLE t1 ( pk int primary key) ENGINE=INNODB; | ||
| ERROR HY000: Maximum writeset size exceeded | ||
| SHOW WARNINGS; | ||
| Level Code Message | ||
| Error 4160 Maximum writeset size exceeded | ||
| connection node_2; | ||
| SET SESSION wsrep_sync_wait = 0; | ||
| Killing server ... | ||
| connection node_1; | ||
| DROP TABLE t3; |
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,32 @@ | ||
| --source include/galera_cluster.inc | ||
|
|
||
| # Save original auto_increment_offset values. | ||
| --let $node_1=node_1 | ||
| --let $node_2=node_2 | ||
| --source include/auto_increment_offset_save.inc | ||
|
|
||
| --connection node_2 | ||
| CREATE TABLE t3 (c1 INTEGER NOT NULL PRIMARY KEY, c2 FLOAT(3,2)); | ||
| SET GLOBAL wsrep_provider_options = 'repl.max_ws_size=512'; | ||
| SET @@autocommit=0; | ||
| INSERT INTO t3 VALUES (1000,0.00),(1001,0.25),(1002,0.50),(1003,0.75),(1008,1.00),(1009,1.25),(1010,1.50),(1011,1.75); | ||
| --error ER_TOO_BIG_WRITESET | ||
| CREATE TABLE t1 ( pk int primary key) ENGINE=INNODB; | ||
| SHOW WARNINGS; | ||
|
|
||
| --connection node_2 | ||
| SET SESSION wsrep_sync_wait = 0; | ||
| --source include/kill_galera.inc | ||
|
|
||
| --let $start_mysqld_params = "" | ||
| --let $_expect_file_name= $MYSQLTEST_VARDIR/tmp/mysqld.2.expect | ||
| --source include/start_mysqld.inc | ||
|
|
||
| # | ||
| # Cleanup | ||
| # | ||
| --source ../../galera/include/auto_increment_offset_restore.inc | ||
| --connection node_1 | ||
| DROP TABLE t3; | ||
|
|
||
|
|
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
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