Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '10.0-galera' into 10.1
- Loading branch information
Showing
6 changed files
with
79 additions
and
2 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,22 @@ | ||
include/master-slave.inc | ||
[connection master] | ||
# | ||
# MDEV-10714: Could not execute Delete_rows event on table; | ||
# wsrep_max_ws_rows exceeded. Error_Code 1180 | ||
# | ||
CREATE TABLE t1(i INT) ENGINE = INNODB; | ||
SET @@GLOBAL.wsrep_max_ws_rows = 1; | ||
INSERT INTO t1 VALUES(1), (2); | ||
SELECT COUNT(*) = 2 FROM t1; | ||
COUNT(*) = 2 | ||
1 | ||
SET @@GLOBAL.wsrep_max_ws_rows = 1; | ||
DELETE FROM t1; | ||
SELECT COUNT(*) = 0 FROM t1; | ||
COUNT(*) = 0 | ||
1 | ||
DROP TABLE t1; | ||
SET @@GLOBAL.wsrep_max_ws_rows = 0; | ||
SET @@GLOBAL.wsrep_max_ws_rows = 0; | ||
include/rpl_end.inc | ||
# End of test. |
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 @@ | ||
!include ../../rpl/my.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,50 @@ | ||
--source include/have_wsrep.inc | ||
--source include/have_innodb.inc | ||
--source include/master-slave.inc | ||
|
||
--echo # | ||
--echo # MDEV-10714: Could not execute Delete_rows event on table; | ||
--echo # wsrep_max_ws_rows exceeded. Error_Code 1180 | ||
--echo # | ||
# Save wsrep_max_ws_rows on master and slave. | ||
connection master; | ||
let $wsrep_max_ws_rows_master = `SELECT @@GLOBAL.wsrep_max_ws_rows`; | ||
connection slave; | ||
let $wsrep_max_ws_rows_slave = `SELECT @@GLOBAL.wsrep_max_ws_rows`; | ||
|
||
connection master; | ||
CREATE TABLE t1(i INT) ENGINE = INNODB; | ||
|
||
# Setting wsrep_max_ws_rows should have no impact on replication master | ||
# unless its a cluster node. | ||
SET @@GLOBAL.wsrep_max_ws_rows = 1; | ||
INSERT INTO t1 VALUES(1), (2); | ||
|
||
sync_slave_with_master; | ||
SELECT COUNT(*) = 2 FROM t1; | ||
|
||
connection slave; | ||
# Setting wsrep_max_ws_rows should have no impact on replication slave | ||
# unless its a cluster node. | ||
SET @@GLOBAL.wsrep_max_ws_rows = 1; | ||
|
||
connection master; | ||
DELETE FROM t1; | ||
|
||
sync_slave_with_master; | ||
SELECT COUNT(*) = 0 FROM t1; | ||
|
||
connection master; | ||
DROP TABLE t1; | ||
|
||
sync_slave_with_master; | ||
|
||
# Restore wsrep_max_ws_rows on master and slave | ||
connection master; | ||
eval SET @@GLOBAL.wsrep_max_ws_rows = $wsrep_max_ws_rows_master; | ||
connection slave; | ||
eval SET @@GLOBAL.wsrep_max_ws_rows = $wsrep_max_ws_rows_slave; | ||
|
||
--source include/rpl_end.inc | ||
--echo # End of test. | ||
|
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