mirror of https://github.com/citusdata/citus.git
Add more generic read-replica tests
parent
3c343d4563
commit
6cd7319f12
|
@ -141,6 +141,25 @@ ORDER BY
|
|||
localhost | 9072
|
||||
(2 rows)
|
||||
|
||||
-- basic helper utilities should work fine
|
||||
SELECT citus_is_coordinator();
|
||||
citus_is_coordinator
|
||||
---------------------------------------------------------------------
|
||||
t
|
||||
(1 row)
|
||||
|
||||
SELECT count(*) FROM citus_lock_waits;
|
||||
count
|
||||
---------------------------------------------------------------------
|
||||
0
|
||||
(1 row)
|
||||
|
||||
SELECT count(*) FROM citus_dist_stat_activity WHERE global_pid = citus_backend_gpid();
|
||||
count
|
||||
---------------------------------------------------------------------
|
||||
1
|
||||
(1 row)
|
||||
|
||||
-- okay, now let's play with nodecluster. If we change the cluster of our follower node
|
||||
-- queries should stat failing again, since there are no worker nodes in the new cluster
|
||||
\c "port=9070 dbname=regression options='-c\ citus.use_secondary_nodes=always\ -c\ citus.cluster_name=second-cluster'"
|
||||
|
|
|
@ -89,6 +89,12 @@ FROM
|
|||
ORDER BY
|
||||
node_name, node_port;
|
||||
|
||||
-- basic helper utilities should work fine
|
||||
SELECT citus_is_coordinator();
|
||||
SELECT count(*) FROM citus_lock_waits;
|
||||
SELECT count(*) FROM citus_dist_stat_activity WHERE global_pid = citus_backend_gpid();
|
||||
|
||||
|
||||
-- okay, now let's play with nodecluster. If we change the cluster of our follower node
|
||||
-- queries should stat failing again, since there are no worker nodes in the new cluster
|
||||
|
||||
|
|
Loading…
Reference in New Issue