Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
205 additions
and
233 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
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,36 @@ | ||
connection node_2; | ||
connection node_1; | ||
connection node_1; | ||
CREATE TABLE t1 (f1 int primary key, f2 int); | ||
INSERT INTO t1 VALUES (1,0); | ||
BEGIN; | ||
INSERT INTO t1 VALUES (2,4),(1,1); | ||
ERROR 23000: Duplicate entry '1' for key 'PRIMARY' | ||
COMMIT; | ||
Writesets replicated (expect 0) | ||
0 | ||
connection node_1; | ||
SELECT * FROM t1; | ||
f1 f2 | ||
1 0 | ||
connection node_2; | ||
SELECT * FROM t1; | ||
f1 f2 | ||
1 0 | ||
DROP TABLE t1; | ||
connection node_1; | ||
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY, f2 INTEGER); | ||
INSERT INTO t1 VALUES (1,0); | ||
INSERT INTO t1 VALUES (2,4), (1,1); | ||
ERROR 23000: Duplicate entry '1' for key 'PRIMARY' | ||
Writesets replicated (expect 0) | ||
0 | ||
connection node_1; | ||
SELECT * FROM t1; | ||
f1 f2 | ||
1 0 | ||
connection node_2; | ||
SELECT * FROM t1; | ||
f1 f2 | ||
1 0 | ||
DROP TABLE t1; |
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,5 @@ | ||
[binlogon] | ||
log-bin | ||
log-slave-updates=ON | ||
|
||
[binlogoff] |
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,58 @@ | ||
# | ||
# MDEV-31272: Statement rollback causes empty writeset replication | ||
# | ||
|
||
--source include/galera_cluster.inc | ||
|
||
# | ||
# Case 1: Multi statement transaction | ||
# | ||
--connection node_1 | ||
CREATE TABLE t1 (f1 int primary key, f2 int); | ||
INSERT INTO t1 VALUES (1,0); | ||
|
||
--let $replicated_old = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_replicated'` | ||
|
||
BEGIN; | ||
--error ER_DUP_ENTRY | ||
INSERT INTO t1 VALUES (2,4),(1,1); | ||
COMMIT; | ||
|
||
--let $replicated_new = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_replicated'` | ||
|
||
--disable_query_log | ||
--eval SELECT $replicated_new - $replicated_old AS 'Writesets replicated (expect 0)'; | ||
--enable_query_log | ||
|
||
--connection node_1 | ||
SELECT * FROM t1; | ||
--connection node_2 | ||
SELECT * FROM t1; | ||
|
||
DROP TABLE t1; | ||
|
||
|
||
# | ||
# Case 2: autocommit statement | ||
# | ||
--connection node_1 | ||
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY, f2 INTEGER); | ||
INSERT INTO t1 VALUES (1,0); | ||
|
||
--let $replicated_old = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_replicated'` | ||
|
||
--error ER_DUP_ENTRY | ||
INSERT INTO t1 VALUES (2,4), (1,1); | ||
|
||
--let $replicated_new = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_replicated'` | ||
|
||
--disable_query_log | ||
--eval SELECT $replicated_new - $replicated_old AS 'Writesets replicated (expect 0)'; | ||
--enable_query_log | ||
|
||
--connection node_1 | ||
SELECT * FROM t1; | ||
--connection node_2 | ||
SELECT * FROM t1; | ||
|
||
DROP TABLE t1; |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
44 changes: 0 additions & 44 deletions
44
mysql-test/suite/wsrep/r/wsrep_variables_no_provider.result
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.