mariadb/mysql-test/suite/galera_sr/r/GCF-1008.result
2019-10-25 12:32:11 +03:00

70 lines
1.9 KiB
Text

connection node_2;
connection node_1;
connect node_2a, 127.0.0.1, root, , test, $NODE_MYPORT_2;
connect node_2b, 127.0.0.1, root, , test, $NODE_MYPORT_2;
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY, f2 CHAR(255)) ENGINE=InnoDB;
connection node_2;
SET SESSION wsrep_trx_fragment_size = 1;
START TRANSACTION;
INSERT INTO t1 VALUES (1, 'x');
connection node_2a;
SET GLOBAL wsrep_provider_options = 'dbug=d,before_local_commit_monitor_enter';
connection node_2;
COMMIT;
connection node_2b;
SET SESSION wsrep_sync_wait = 0;
SELECT COUNT(*) AS EXPECT_0 FROM t1;
EXPECT_0
0
connection node_1;
SET SESSION wsrep_sync_wait = 0;
SET SESSION wsrep_trx_fragment_size = 1;
SELECT COUNT(*) AS EXPECT_1 FROM t1;
EXPECT_1
1
REPLACE INTO t1 VALUES (1,'y');
connection node_2b;
SELECT COUNT(*) AS EXPECT_0 FROM t1;
EXPECT_0
0
connection node_2a;
SET GLOBAL wsrep_provider_options = 'signal=before_local_commit_monitor_enter';
SET GLOBAL wsrep_provider_options = 'dbug=';
connection node_2;
SELECT COUNT(*) AS EXPECT_1 FROM t1;
EXPECT_1
1
DROP TABLE t1;
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY, f2 CHAR(255)) ENGINE=InnoDB;
connection node_2;
SET SESSION wsrep_trx_fragment_size = 1;
START TRANSACTION;
INSERT INTO t1 VALUES (1, 'x');
connection node_2a;
SET GLOBAL wsrep_provider_options = 'dbug=d,before_certify_apply_monitor_enter';
connection node_2;
COMMIT;
connection node_2b;
SET SESSION wsrep_sync_wait = 0;
SELECT COUNT(*) AS EXPECT_0 FROM t1;
EXPECT_0
0
connection node_1;
SET SESSION wsrep_sync_wait = 0;
SET SESSION wsrep_trx_fragment_size = 1;
SELECT COUNT(*) AS EXPECT_1 FROM t1;
EXPECT_1
1
REPLACE INTO t1 VALUES (1,'y');
connection node_2b;
SELECT COUNT(*) AS EXPECT_0 FROM t1;
EXPECT_0
0
connection node_2a;
SET GLOBAL wsrep_provider_options = 'signal=before_certify_apply_monitor_enter';
SET GLOBAL wsrep_provider_options = 'dbug=';
connection node_2;
SELECT COUNT(*) AS EXPECT_1 FROM t1;
EXPECT_1
1
DROP TABLE t1;