Add more generic read-replica tests

pull/6057/head
Onder Kalaci 2022-07-13 14:58:30 +02:00
parent 3c343d4563
commit 6cd7319f12
2 changed files with 25 additions and 0 deletions

View File

@ -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'"

View File

@ -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