Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
32 changed files
with
434 additions
and
213 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
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 |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| connection node_1; | ||
| SELECT COUNT(DISTINCT uuid) = 2 FROM mtr_wsrep_notify.membership; | ||
| COUNT(DISTINCT uuid) = 2 | ||
| 1 | ||
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 |
|---|---|---|
| @@ -1,10 +1,5 @@ | ||
| !include ../galera_2nodes.cnf | ||
|
|
||
| [mysqld.1] | ||
| [mysqld] | ||
| innodb-status-output=ON | ||
| innodb-status-output-locks=ON | ||
|
|
||
| [mysqld.2] | ||
| innodb-status-output=ON | ||
| innodb-status-output-locks=ON | ||
|
|
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,24 @@ | ||
| connection node_2; | ||
| connection node_1; | ||
| SELECT VARIABLE_VALUE LIKE '%[::1]%' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_incoming_addresses'; | ||
| VARIABLE_VALUE LIKE '%[::1]%' | ||
| 1 | ||
| SELECT VARIABLE_VALUE = 3 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'; | ||
| VARIABLE_VALUE = 3 | ||
| 1 | ||
| connection node_2; | ||
| SET GLOBAL wsrep_provider_options='gmcast.isolate=1'; | ||
| connection node_1; | ||
| CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB; | ||
| INSERT INTO t1 VALUES (1); | ||
| connection node_2; | ||
| SET GLOBAL wsrep_provider_options='gmcast.isolate=0'; | ||
| SELECT COUNT(*) = 1 FROM t1; | ||
| COUNT(*) = 1 | ||
| 1 | ||
| DROP TABLE t1; | ||
| connection node_1; | ||
| include/assert_grep.inc [Streaming the backup to joiner at \[::1\]] | ||
| include/assert_grep.inc [async IST sender starting to serve tcp://\[::1\]:] | ||
| include/assert_grep.inc [IST receiver addr using tcp://\[::1\]] | ||
| include/assert_grep.inc [Prepared IST receiver for 3-6, listening at: tcp://\[::1\]] |
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,19 @@ | ||
| connection node_2; | ||
| connection node_1; | ||
| SELECT VARIABLE_VALUE LIKE '%[::1]%' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_incoming_addresses'; | ||
| VARIABLE_VALUE LIKE '%[::1]%' | ||
| 1 | ||
| SELECT VARIABLE_VALUE = 3 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'; | ||
| VARIABLE_VALUE = 3 | ||
| 1 | ||
| connection node_2; | ||
| SET GLOBAL wsrep_provider_options='gmcast.isolate=1'; | ||
| connection node_1; | ||
| CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB; | ||
| INSERT INTO t1 VALUES (1); | ||
| connection node_2; | ||
| SET GLOBAL wsrep_provider_options='gmcast.isolate=0'; | ||
| SELECT COUNT(*) = 1 FROM t1; | ||
| 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,39 @@ | ||
| !include ../galera_3nodes.cnf | ||
|
|
||
| # decoy value - should not be read by mysqld or sst scripts | ||
| [mysqld] | ||
| innodb-data-home-dir=/tmp | ||
|
|
||
| [galera] | ||
| innodb-data-home-dir= | ||
| wsrep_sst_method=mariabackup | ||
| wsrep_sst_auth="root:" | ||
| wsrep_node_address=::1 | ||
|
|
||
| [galera.1] | ||
| wsrep-cluster-address=gcomm:// | ||
| wsrep_provider_options='base_host=[::1];base_port=@mysqld.1.#galera_port;gmcast.listen_addr=tcp://[::]:@mysqld.1.#galera_port;ist.recv_addr=[::1]:@mysqld.1.#ist_port' | ||
| wsrep_sst_receive_address='[::1]:@mysqld.1.#sst_port' | ||
| wsrep_node_incoming_address='[::1]:@mysqld.1.port' | ||
| wsrep_node_name=node_1 | ||
|
|
||
| [galera.2] | ||
| wsrep_cluster_address='gcomm://[::1]:@mysqld.1.#galera_port' | ||
| wsrep_provider_options='base_host=[::1];base_port=@mysqld.2.#galera_port;gmcast.listen_addr=tcp://[::]:@mysqld.2.#galera_port;ist.recv_addr=[::1]:@mysqld.2.#ist_port' | ||
| wsrep_sst_receive_address='[::1]:@mysqld.2.#sst_port' | ||
| wsrep_node_incoming_address='[::1]:@mysqld.2.port' | ||
| wsrep_node_name=node_2 | ||
| wsrep_sst_donor=node_1 | ||
|
|
||
| [galera.3] | ||
| wsrep_cluster_address='gcomm://[::1]:@mysqld.1.#galera_port' | ||
| wsrep_provider_options='base_host=[::1];base_port=@mysqld.3.#galera_port;gmcast.listen_addr=tcp://[::]:@mysqld.3.#galera_port;ist.recv_addr=[::1]:@mysqld.3.#ist_port' | ||
| wsrep_sst_receive_address='[::1]:@mysqld.3.#sst_port' | ||
| wsrep_node_incoming_address='[::1]:@mysqld.3.port' | ||
| wsrep_node_name=node_3 | ||
| wsrep_sst_donor=node_1 | ||
|
|
||
| [SST] | ||
| transferfmt=@ENV.MTR_GALERA_TFMT | ||
| streamfmt=xbstream | ||
| sockopt=",pf=ip6" |
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 @@ | ||
| --bind-address=:: |
Oops, something went wrong.