mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 02:30:06 +01:00
d7b37de936
* galera_kill_applier : we should make sure that node has correct number of wsrep appliers * galera_bad_wsrep_new_cluster: This test restarts both nodes, so it is bad on mtr. Make sure it is run alone * galera_update_limit : Make sure we have PK when needed galera_as_slave_replay : bf abort was not consistent * galera_unicode_pk : Add wait_conditions so that all nodes are part of cluster and DDL and INSERT has replicated before any further operations are done. * galera_bf_abort_at_after_statement : Add wait_conditions to make sure all nodes are part of cluster and that DDL and INSERT has replicated. Make sure we reset DEBUG_SYNC.
43 lines
1,018 B
Text
43 lines
1,018 B
Text
connection node_2;
|
||
connection node_1;
|
||
connection node_1;
|
||
CREATE TABLE t1 (
|
||
f1 VARCHAR(255) PRIMARY KEY
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||
INSERT INTO t1 VALUES ('текст');
|
||
connection node_2;
|
||
SELECT f1 = 'текст' FROM t1;
|
||
f1 = 'текст'
|
||
1
|
||
connection node_1;
|
||
SET AUTOCOMMIT=OFF;
|
||
START TRANSACTION;
|
||
UPDATE t1 SET f1 = 'текст2';
|
||
connection node_2;
|
||
SET AUTOCOMMIT=OFF;
|
||
START TRANSACTION;
|
||
UPDATE t1 SET f1 = 'текст3';
|
||
connection node_1;
|
||
COMMIT;
|
||
connection node_2;
|
||
COMMIT;
|
||
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
|
||
SELECT f1 = 'текст2' FROM t1;
|
||
f1 = 'текст2'
|
||
1
|
||
SELECT f1 = 'текст2' FROM t1 WHERE f1 = 'текст2';
|
||
f1 = 'текст2'
|
||
1
|
||
connection node_2;
|
||
START TRANSACTION;
|
||
INSERT INTO t1 VALUES ('текст4');
|
||
connection node_1;
|
||
START TRANSACTION;
|
||
INSERT INTO t1 VALUES ('текст4');
|
||
connection node_2;
|
||
COMMIT;
|
||
connection node_1;
|
||
COMMIT;
|
||
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
|
||
COMMIT;
|
||
DROP TABLE t1;
|