diff options
author | Pallavi Sontakke | 2016-04-06 06:43:43 +0000 |
---|---|---|
committer | Pavan Deolasee | 2016-10-18 10:05:04 +0000 |
commit | 1fcd6d28f90803863a929489477050e1d0f5dbcc (patch) | |
tree | 5dbf69afdf8e3e0ed16e19bb7d71c7a8b23f8ca3 | |
parent | dd34766b22d2d4ff6c20a86719f34c6b68f2a3b7 (diff) |
Add test for GTM standby
-rwxr-xr-x | contrib/pgxc_ctl/t/010_pgxc_ctl.pl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/pgxc_ctl/t/010_pgxc_ctl.pl b/contrib/pgxc_ctl/t/010_pgxc_ctl.pl index ae853dd2ac..b2fcbd38aa 100755 --- a/contrib/pgxc_ctl/t/010_pgxc_ctl.pl +++ b/contrib/pgxc_ctl/t/010_pgxc_ctl.pl @@ -50,6 +50,7 @@ system_or_bail 'pgxc_ctl', 'monitor', 'all' ; system_or_bail 'pgxc_ctl', 'remove', 'datanode', 'master', 'dn3', 'clean' ; system_or_bail 'pgxc_ctl', 'monitor', 'all' ; +#Datanode slave test system_or_bail 'pgxc_ctl', 'add', 'datanode', 'slave', 'dn1', "$DN1_HOST", '40101', '40111', "$dataDirRoot/dn_slave.1", 'none', "$dataDirRoot/datanode_archlog.1" ; system_or_bail 'pgxc_ctl', 'monitor', 'all' ; @@ -60,6 +61,21 @@ system_or_bail 'pgxc_ctl', 'failover', 'datanode', 'dn1' ; system_or_bail 'pgxc_ctl', 'monitor', 'all' ; +#GTM standby test + +system_or_bail 'pgxc_ctl', 'add', 'gtm', 'slave', 'gtm_slave', "$GTM_HOST", '20101', "$dataDirRoot/gtm_slave" ; + +#this step may need to be done by pgxc_ctl internally +#system_or_bail 'gtm_ctl', '-Z', 'gtm_standby', '-D', "$dataDirRoot/gtm_slave", "-l", "$dataDirRoot/gtm_slave_archlog.1", 'start' ; + +system_or_bail 'pgxc_ctl', 'monitor', 'all' ; + +system_or_bail 'pgxc_ctl', 'stop', "-m", 'immediate', 'gtm', 'master', 'gtm' ; + +system_or_bail 'pgxc_ctl', 'failover', 'gtm', 'gtm' ; + +system_or_bail 'pgxc_ctl', 'monitor', 'all' ; + #add cleanup system_or_bail 'pgxc_ctl', 'clean', 'all' ; |