Skip to content

Commit

Permalink
Galera MTR Tests: fixes for mysqldump SST/IST tests
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-galera authored and Nirbhay Choubey committed Sep 10, 2015
1 parent 10f5c08 commit 83579c2
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 16 deletions.
5 changes: 3 additions & 2 deletions mysql-test/suite/galera/include/galera_sst_set_mysqldump.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@

--connection node_1
# We need a user with a password to perform SST, otherwise we hit LP #1378253
GRANT ALL PRIVILEGES ON *.* TO 'sst' IDENTIFIED BY 'sst';
GRANT ALL PRIVILEGES ON *.* TO 'sst';

--let $wsrep_sst_auth_orig = `SELECT @@wsrep_sst_auth`
SET GLOBAL wsrep_sst_auth = 'sst:sst';
SET GLOBAL wsrep_sst_auth = 'sst:';

--connection node_2
--source include/wait_until_connected_again.inc
--let $wsrep_sst_method_orig = `SELECT @@wsrep_sst_method`
--let $wsrep_sst_receive_address_orig = `SELECT @@wsrep_sst_receive_address`

Expand Down
1 change: 1 addition & 0 deletions mysql-test/suite/galera/include/kill_galera.inc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
--echo Killing server ...

# Write file to make mysql-test-run.pl expect the crash, but don't start it
--source include/wait_until_connected_again.inc
--let $_server_id= `SELECT @@server_id`
--let $_expect_file_name= $MYSQLTEST_VARDIR/tmp/mysqld.$_server_id.expect
--exec echo "wait" > $_expect_file_name
Expand Down
4 changes: 2 additions & 2 deletions mysql-test/suite/galera/r/galera_ist_mysqldump.result
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Setting SST method to mysqldump ...
GRANT ALL PRIVILEGES ON *.* TO 'sst' IDENTIFIED BY 'sst';
SET GLOBAL wsrep_sst_auth = 'sst:sst';
GRANT ALL PRIVILEGES ON *.* TO 'sst';
SET GLOBAL wsrep_sst_auth = 'sst:';
SET GLOBAL wsrep_sst_method = 'mysqldump';
Performing State Transfer on a server that has been shut down cleanly and restarted
CREATE TABLE t1 (f1 CHAR(255)) ENGINE=InnoDB;
Expand Down
6 changes: 3 additions & 3 deletions mysql-test/suite/galera/r/galera_migrate.result
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ SELECT VARIABLE_VALUE = 1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_N
VARIABLE_VALUE = 1
1
INSERT INTO t1 VALUES (6);
GRANT ALL PRIVILEGES ON *.* TO 'sst' IDENTIFIED BY 'sst';
SET GLOBAL wsrep_sst_auth = 'sst:sst';
GRANT ALL PRIVILEGES ON *.* TO 'sst' IDENTIFIED BY 'sst';
GRANT ALL PRIVILEGES ON *.* TO 'sst';
SET GLOBAL wsrep_sst_auth = 'sst:';
GRANT ALL PRIVILEGES ON *.* TO 'sst';
SELECT VARIABLE_VALUE = 'Synced' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_local_state_comment';
VARIABLE_VALUE = 'Synced'
1
Expand Down
4 changes: 2 additions & 2 deletions mysql-test/suite/galera/r/galera_sst_mysqldump.result
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Setting SST method to mysqldump ...
GRANT ALL PRIVILEGES ON *.* TO 'sst' IDENTIFIED BY 'sst';
SET GLOBAL wsrep_sst_auth = 'sst:sst';
GRANT ALL PRIVILEGES ON *.* TO 'sst';
SET GLOBAL wsrep_sst_auth = 'sst:';
SET GLOBAL wsrep_sst_method = 'mysqldump';
Performing State Transfer on a server that has been temporarily disconnected
CREATE TABLE t1 (f1 CHAR(255)) ENGINE=InnoDB;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Setting SST method to mysqldump ...
GRANT ALL PRIVILEGES ON *.* TO 'sst' IDENTIFIED BY 'sst';
SET GLOBAL wsrep_sst_auth = 'sst:sst';
GRANT ALL PRIVILEGES ON *.* TO 'sst';
SET GLOBAL wsrep_sst_auth = 'sst:';
SET GLOBAL wsrep_sst_method = 'mysqldump';
CREATE USER sslsst;
GRANT ALL PRIVILEGES ON *.* TO sslsst;
Expand Down
4 changes: 2 additions & 2 deletions mysql-test/suite/galera/r/mysql-wsrep#33.result
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Setting SST method to mysqldump ...
GRANT ALL PRIVILEGES ON *.* TO 'sst' IDENTIFIED BY 'sst';
SET GLOBAL wsrep_sst_auth = 'sst:sst';
GRANT ALL PRIVILEGES ON *.* TO 'sst';
SET GLOBAL wsrep_sst_auth = 'sst:';
SET GLOBAL wsrep_sst_method = 'mysqldump';
Performing State Transfer on a server that has been temporarily disconnected
CREATE TABLE t1 (f1 CHAR(255)) ENGINE=InnoDB;
Expand Down
6 changes: 3 additions & 3 deletions mysql-test/suite/galera/t/galera_migrate.test
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ INSERT INTO t1 VALUES (6);

--connection node_3
# We need a user with a password for mysqldump SST
GRANT ALL PRIVILEGES ON *.* TO 'sst' IDENTIFIED BY 'sst';
SET GLOBAL wsrep_sst_auth = 'sst:sst';
GRANT ALL PRIVILEGES ON *.* TO 'sst';
SET GLOBAL wsrep_sst_auth = 'sst:';

--connect node_4, 127.0.0.1, root, , test, $NODE_MYPORT_4
GRANT ALL PRIVILEGES ON *.* TO 'sst' IDENTIFIED BY 'sst';
GRANT ALL PRIVILEGES ON *.* TO 'sst';

--disable_query_log
--eval SET GLOBAL wsrep_sst_method = 'mysqldump';
Expand Down

0 comments on commit 83579c2

Please sign in to comment.