Skip to content

Commit

Permalink
Adapt galera_sr.GCF-572 to make it work with innodb-snapshot-isolation
Browse files Browse the repository at this point in the history
Make galera_sr.GCF-572 behave the same with and without option
innodb-snapshot-isolation. It is sufficient to remove a SELECT
statement from a transaction to delay the creation of the read
view in innodb. Avoiding the detection of a write-write conflict
under innodb-snapshot-isolation.
  • Loading branch information
sciascid committed Oct 30, 2024
1 parent be7daa4 commit 11ef59f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions mysql-test/suite/galera_sr/r/GCF-572.result
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ f1 f2
SET SESSION wsrep_trx_fragment_size = 10000;
START TRANSACTION;
INSERT INTO t1 VALUE (10, 'node1');
SELECT * FROM mysql.wsrep_streaming_log;
node_uuid trx_id seqno flags frag
connection node_1a;
INSERT INTO t1 VALUES(15, 'node2');
connection node_1;
Expand All @@ -47,6 +45,7 @@ f1 f2
1 node1
5 node2
10 node1
15 node2
INSERT INTO t1 VALUES(15, 'node1');
ERROR 23000: Duplicate entry '15' for key 'PRIMARY'
COMMIT;
Expand Down
1 change: 0 additions & 1 deletion mysql-test/suite/galera_sr/t/GCF-572.test
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ SET SESSION wsrep_trx_fragment_size = 10000;

START TRANSACTION;
INSERT INTO t1 VALUE (10, 'node1');
SELECT * FROM mysql.wsrep_streaming_log;

--connection node_1a
INSERT INTO t1 VALUES(15, 'node2');
Expand Down

0 comments on commit 11ef59f

Please sign in to comment.