Skip to content
Permalink
Browse files
MW-405 Adjust galera_pc_weight to new wait_until_connected_again
Test galera_3nodes.galera_pc_weight started to fail because it
expects to use wait_until_connected_again while remaining in
non-primary view. Hopefully this is the only test which makes
this assumption, and fortunately those wait_until_connected_again
seem unnecessary, so this patch removes them.
  • Loading branch information
sciascid authored and Jan Lindström committed Apr 3, 2018
1 parent fc26fd1 commit 5465216
Showing 1 changed file with 0 additions and 5 deletions.
@@ -9,16 +9,12 @@

--connection node_1
SET GLOBAL wsrep_provider_options = 'pc.weight=3';

--source include/wait_until_connected_again.inc
--source include/galera_suspend.inc
--sleep 10

--connection node_2
# Do not wait for causality as we are no longer in the primary component
SET SESSION wsrep_sync_wait=0;
--source include/wait_until_connected_again.inc

SET SESSION wsrep_on=OFF;
--let $wait_condition = SELECT VARIABLE_VALUE = 'non-Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status'
--source include/wait_condition.inc
@@ -39,7 +35,6 @@ SHOW STATUS LIKE 'wsrep_local_state_comment';
--source include/galera_connect.inc
--connection node_3
SET SESSION wsrep_sync_wait=0;
--source include/wait_until_connected_again.inc

SHOW STATUS LIKE 'wsrep_cluster_size';
SHOW STATUS LIKE 'wsrep_cluster_status';

0 comments on commit 5465216

Please sign in to comment.