-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
46 changed files
with
740 additions
and
114 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
Submodule libmariadb
updated
from 72b40b to 12bd1d
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
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,40 @@ | ||
connection node_2; | ||
connection node_1; | ||
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY, f2 int, f3 varchar(2000)); | ||
INSERT INTO t1 VALUES (1, 0, REPEAT('1234567890', 200)); | ||
INSERT INTO t1 VALUES (3, 3, REPEAT('1234567890', 200)); | ||
SET SESSION wsrep_sync_wait=0; | ||
SET GLOBAL DEBUG_DBUG = "d,sync.wsrep_apply_cb"; | ||
connect node_1a, 127.0.0.1, root, , test, $NODE_MYPORT_1; | ||
connection node_1a; | ||
SET SESSION wsrep_sync_wait=0; | ||
connection node_1; | ||
begin; | ||
select f1,f2 from t1; | ||
f1 f2 | ||
1 0 | ||
3 3 | ||
connection node_2; | ||
UPDATE t1 SET f2=2 WHERE f1=3; | ||
connection node_1a; | ||
SET SESSION DEBUG_SYNC = "now WAIT_FOR sync.wsrep_apply_cb_reached"; | ||
connection node_1; | ||
UPDATE t1 SET f2=1 WHERE f1=3; | ||
SET GLOBAL wsrep_provider_options = 'dbug=d,commit_monitor_master_enter_sync'; | ||
COMMIT; | ||
connection node_1a; | ||
SET SESSION wsrep_on = 0; | ||
SET SESSION wsrep_on = 1; | ||
SET GLOBAL wsrep_provider_options = 'dbug='; | ||
SET GLOBAL wsrep_provider_options = 'signal=commit_monitor_master_enter_sync'; | ||
SET GLOBAL DEBUG_DBUG = ""; | ||
SET DEBUG_SYNC = "now SIGNAL signal.wsrep_apply_cb"; | ||
SET GLOBAL debug_dbug = NULL; | ||
SET debug_sync='RESET'; | ||
connection node_1; | ||
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction | ||
select f1,f2 from t1; | ||
f1 f2 | ||
1 0 | ||
3 2 | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
connection node_2; | ||
connection node_1; | ||
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY, f2 CHAR(1)); | ||
INSERT INTO t1 VALUES (1, 'a'); | ||
INSERT INTO t1 VALUES (2, 'a'); | ||
connection node_1; | ||
SET AUTOCOMMIT=ON; | ||
START TRANSACTION; | ||
UPDATE t1 SET f2 = 'b' WHERE f1 = 1; | ||
SELECT * FROM t1 WHERE f1 = 2 FOR UPDATE; | ||
f1 f2 | ||
2 a | ||
SAVEPOINT my_sp; | ||
connect node_1a, 127.0.0.1, root, , test, $NODE_MYPORT_1; | ||
SET SESSION wsrep_sync_wait=0; | ||
SET GLOBAL wsrep_provider_options = 'dbug=d,apply_monitor_slave_enter_sync'; | ||
connection node_2; | ||
UPDATE t1 SET f2 = 'c' WHERE f1 = 2; | ||
connection node_1a; | ||
SET SESSION wsrep_on = 0; | ||
SET SESSION wsrep_on = 1; | ||
SET GLOBAL wsrep_provider_options = 'dbug='; | ||
SET GLOBAL wsrep_provider_options = 'dbug=d,commit_monitor_master_enter_sync'; | ||
connection node_1; | ||
COMMIT; | ||
connection node_1a; | ||
SET SESSION wsrep_on = 0; | ||
SET SESSION wsrep_on = 1; | ||
SET GLOBAL wsrep_provider_options = 'dbug='; | ||
SET GLOBAL wsrep_provider_options = 'dbug=d,abort_trx_end'; | ||
SET GLOBAL wsrep_provider_options = 'signal=apply_monitor_slave_enter_sync'; | ||
SET SESSION wsrep_on = 0; | ||
SET SESSION wsrep_on = 1; | ||
SET GLOBAL wsrep_provider_options = 'dbug='; | ||
SET GLOBAL wsrep_provider_options = 'signal=abort_trx_end'; | ||
SET GLOBAL wsrep_provider_options = 'signal=commit_monitor_master_enter_sync'; | ||
connection node_1; | ||
SELECT COUNT(*) = 1 FROM t1 WHERE f2 = 'b'; | ||
COUNT(*) = 1 | ||
1 | ||
SELECT COUNT(*) = 1 FROM t1 WHERE f2 = 'c'; | ||
COUNT(*) = 1 | ||
1 | ||
wsrep_local_replays | ||
1 | ||
connection node_2; | ||
SELECT COUNT(*) = 1 FROM t1 WHERE f2 = 'b'; | ||
COUNT(*) = 1 | ||
1 | ||
SELECT COUNT(*) = 1 FROM t1 WHERE f2 = 'c'; | ||
COUNT(*) = 1 | ||
1 | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
!include ../galera_2nodes.cnf | ||
|
||
[mysqld] | ||
log-bin | ||
log-slave-updates | ||
|
||
[mysqld.1] | ||
log_bin | ||
log_slave_updates | ||
max-binlog-size=4096 | ||
expire-logs-days=1 | ||
|
||
|
||
[mysqld.2] | ||
|
Oops, something went wrong.