mirror of https://github.com/citusdata/citus.git
flakyness test
parent
b22ecb0e34
commit
784169cbe5
|
@ -115,6 +115,13 @@ SELECT nodename, nodeport, COUNT(*)
|
||||||
localhost | 57638 | 2
|
localhost | 57638 | 2
|
||||||
(2 rows)
|
(2 rows)
|
||||||
|
|
||||||
|
-- flakyness test
|
||||||
|
SELECT floor(random() * 2) + 1;
|
||||||
|
?column?
|
||||||
|
---------------------------------------------------------------------
|
||||||
|
2
|
||||||
|
(1 row)
|
||||||
|
|
||||||
RESET search_path;
|
RESET search_path;
|
||||||
SET client_min_messages TO WARNING;
|
SET client_min_messages TO WARNING;
|
||||||
DROP SCHEMA citus_drain_node CASCADE;
|
DROP SCHEMA citus_drain_node CASCADE;
|
||||||
|
|
|
@ -56,6 +56,9 @@ SELECT nodename, nodeport, COUNT(*)
|
||||||
WHERE placement.groupid = node.groupid
|
WHERE placement.groupid = node.groupid
|
||||||
AND node.noderole = 'primary' GROUP BY nodename, nodeport ORDER BY 1,2;
|
AND node.noderole = 'primary' GROUP BY nodename, nodeport ORDER BY 1,2;
|
||||||
|
|
||||||
|
-- flakyness test
|
||||||
|
SELECT floor(random() * 2) + 1;
|
||||||
|
|
||||||
RESET search_path;
|
RESET search_path;
|
||||||
|
|
||||||
SET client_min_messages TO WARNING;
|
SET client_min_messages TO WARNING;
|
||||||
|
|
Loading…
Reference in New Issue