mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge branch '10.6' into 10.11
This commit is contained in:
33
mysql-test/suite/galera_sr/r/galera_sr_bf_abort_idle.result
Normal file
33
mysql-test/suite/galera_sr/r/galera_sr_bf_abort_idle.result
Normal file
@@ -0,0 +1,33 @@
|
||||
connection node_2;
|
||||
connection node_1;
|
||||
connect node_1a, 127.0.0.1, root, , test, $NODE_MYPORT_1;
|
||||
connection node_1;
|
||||
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY, f2 INTEGER);
|
||||
INSERT INTO t1 VALUES (1,1),(2,1),(3,1),(4,1),(5,1),(6,1),(7,1),(8,1);
|
||||
SET SESSION wsrep_trx_fragment_size=10;
|
||||
SET SESSION wsrep_trx_fragment_unit='rows';
|
||||
START TRANSACTION;
|
||||
UPDATE t1 SET f2 = f2 + 10;
|
||||
connection node_2;
|
||||
INSERT INTO t1 VALUES (10,2);
|
||||
connection node_1a;
|
||||
connection node_1;
|
||||
INSERT INTO t1 VALUES (9,1);
|
||||
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
|
||||
ROLLBACK;
|
||||
DROP TABLE t1;
|
||||
connection node_1;
|
||||
CREATE TABLE t1(f1 INTEGER PRIMARY KEY, f2 INTEGER);
|
||||
INSERT INTO t1 VALUES (1,1),(2,1),(3,1),(4,1),(5,1),(6,1),(7,1),(8,1);
|
||||
SET SESSION wsrep_trx_fragment_size=5;
|
||||
SET SESSION wsrep_trx_fragment_unit='rows';
|
||||
START TRANSACTION;
|
||||
UPDATE t1 SET f2 = f2 + 10;
|
||||
connection node_2;
|
||||
INSERT INTO t1 VALUES (10,2);
|
||||
connection node_1a;
|
||||
connection node_1;
|
||||
INSERT INTO t1 VALUES (9,1);
|
||||
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
|
||||
ROLLBACK;
|
||||
DROP TABLE t1;
|
Reference in New Issue
Block a user