mirror of https://github.com/citusdata/citus.git
Fixup more
parent
b1da6b0bec
commit
467f9be6e6
|
@ -94,12 +94,8 @@ SELECT citus.mitmproxy('conn.allow()');
|
||||||
|
|
||||||
-- Make sure that we fall back to a working node for reads, even if it's not
|
-- Make sure that we fall back to a working node for reads, even if it's not
|
||||||
-- the first choice in our task assignment policy.
|
-- the first choice in our task assignment policy.
|
||||||
-- This sometimes adds an extra warning line like this (without a cause after
|
|
||||||
-- the error):
|
|
||||||
-- WARNING: connection to the remote node localhost:xxxxx failed with the following error:
|
|
||||||
-- So because of that we have two output files
|
|
||||||
SET citus.node_connection_timeout TO 900;
|
SET citus.node_connection_timeout TO 900;
|
||||||
SELECT citus.mitmproxy('conn.connect_delay(1000)');
|
SELECT citus.mitmproxy('conn.connect_delay(1400)');
|
||||||
mitmproxy
|
mitmproxy
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -124,7 +120,7 @@ SELECT citus.mitmproxy('conn.allow()');
|
||||||
-- a reference table and with citus.force_max_query_parallelization is set
|
-- a reference table and with citus.force_max_query_parallelization is set
|
||||||
SET citus.force_max_query_parallelization TO ON;
|
SET citus.force_max_query_parallelization TO ON;
|
||||||
SET citus.node_connection_timeout TO 900;
|
SET citus.node_connection_timeout TO 900;
|
||||||
SELECT citus.mitmproxy('conn.connect_delay(1000)');
|
SELECT citus.mitmproxy('conn.connect_delay(1400)');
|
||||||
mitmproxy
|
mitmproxy
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -156,7 +152,7 @@ SELECT create_distributed_table('single_replicatated', 'key');
|
||||||
-- the max parallelization flag, so the query should fail
|
-- the max parallelization flag, so the query should fail
|
||||||
SET citus.force_max_query_parallelization TO ON;
|
SET citus.force_max_query_parallelization TO ON;
|
||||||
SET citus.node_connection_timeout TO 900;
|
SET citus.node_connection_timeout TO 900;
|
||||||
SELECT citus.mitmproxy('conn.connect_delay(1000)');
|
SELECT citus.mitmproxy('conn.connect_delay(1400)');
|
||||||
mitmproxy
|
mitmproxy
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -189,7 +185,7 @@ WHERE
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
SET citus.node_connection_timeout TO 900;
|
SET citus.node_connection_timeout TO 900;
|
||||||
SELECT citus.mitmproxy('conn.connect_delay(1000)');
|
SELECT citus.mitmproxy('conn.connect_delay(1400)');
|
||||||
mitmproxy
|
mitmproxy
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -300,7 +296,7 @@ SELECT * FROM citus_check_connection_to_node('localhost', :worker_2_proxy_port);
|
||||||
ERROR: canceling statement due to user request
|
ERROR: canceling statement due to user request
|
||||||
-- verify that the checks are not successful when timeouts happen on a connection
|
-- verify that the checks are not successful when timeouts happen on a connection
|
||||||
SET citus.node_connection_timeout TO 900;
|
SET citus.node_connection_timeout TO 900;
|
||||||
SELECT citus.mitmproxy('conn.connect_delay(1000)');
|
SELECT citus.mitmproxy('conn.connect_delay(1400)');
|
||||||
mitmproxy
|
mitmproxy
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -57,12 +57,8 @@ SELECT citus.mitmproxy('conn.allow()');
|
||||||
|
|
||||||
-- Make sure that we fall back to a working node for reads, even if it's not
|
-- Make sure that we fall back to a working node for reads, even if it's not
|
||||||
-- the first choice in our task assignment policy.
|
-- the first choice in our task assignment policy.
|
||||||
-- This sometimes adds an extra warning line like this (without a cause after
|
|
||||||
-- the error):
|
|
||||||
-- WARNING: connection to the remote node localhost:9060 failed with the following error:
|
|
||||||
-- So because of that we have two output files
|
|
||||||
SET citus.node_connection_timeout TO 900;
|
SET citus.node_connection_timeout TO 900;
|
||||||
SELECT citus.mitmproxy('conn.connect_delay(1000)');
|
SELECT citus.mitmproxy('conn.connect_delay(1400)');
|
||||||
-- tests for connectivity checks
|
-- tests for connectivity checks
|
||||||
SELECT name FROM r1 WHERE id = 2;
|
SELECT name FROM r1 WHERE id = 2;
|
||||||
RESET citus.node_connection_timeout;
|
RESET citus.node_connection_timeout;
|
||||||
|
@ -72,7 +68,7 @@ SELECT citus.mitmproxy('conn.allow()');
|
||||||
-- a reference table and with citus.force_max_query_parallelization is set
|
-- a reference table and with citus.force_max_query_parallelization is set
|
||||||
SET citus.force_max_query_parallelization TO ON;
|
SET citus.force_max_query_parallelization TO ON;
|
||||||
SET citus.node_connection_timeout TO 900;
|
SET citus.node_connection_timeout TO 900;
|
||||||
SELECT citus.mitmproxy('conn.connect_delay(1000)');
|
SELECT citus.mitmproxy('conn.connect_delay(1400)');
|
||||||
SELECT count(*) FROM products;
|
SELECT count(*) FROM products;
|
||||||
RESET citus.node_connection_timeout;
|
RESET citus.node_connection_timeout;
|
||||||
SELECT citus.mitmproxy('conn.allow()');
|
SELECT citus.mitmproxy('conn.allow()');
|
||||||
|
@ -85,7 +81,7 @@ SELECT create_distributed_table('single_replicatated', 'key');
|
||||||
-- the max parallelization flag, so the query should fail
|
-- the max parallelization flag, so the query should fail
|
||||||
SET citus.force_max_query_parallelization TO ON;
|
SET citus.force_max_query_parallelization TO ON;
|
||||||
SET citus.node_connection_timeout TO 900;
|
SET citus.node_connection_timeout TO 900;
|
||||||
SELECT citus.mitmproxy('conn.connect_delay(1000)');
|
SELECT citus.mitmproxy('conn.connect_delay(1400)');
|
||||||
SELECT count(*) FROM single_replicatated;
|
SELECT count(*) FROM single_replicatated;
|
||||||
RESET citus.force_max_query_parallelization;
|
RESET citus.force_max_query_parallelization;
|
||||||
RESET citus.node_connection_timeout;
|
RESET citus.node_connection_timeout;
|
||||||
|
@ -104,7 +100,7 @@ WHERE
|
||||||
shardstate = 3 AND
|
shardstate = 3 AND
|
||||||
shardid IN (SELECT shardid from pg_dist_shard where logicalrelid = 'single_replicatated'::regclass);
|
shardid IN (SELECT shardid from pg_dist_shard where logicalrelid = 'single_replicatated'::regclass);
|
||||||
SET citus.node_connection_timeout TO 900;
|
SET citus.node_connection_timeout TO 900;
|
||||||
SELECT citus.mitmproxy('conn.connect_delay(1000)');
|
SELECT citus.mitmproxy('conn.connect_delay(1400)');
|
||||||
INSERT INTO single_replicatated VALUES (100);
|
INSERT INTO single_replicatated VALUES (100);
|
||||||
COMMIT;
|
COMMIT;
|
||||||
RESET citus.node_connection_timeout;
|
RESET citus.node_connection_timeout;
|
||||||
|
@ -154,7 +150,7 @@ SELECT * FROM citus_check_connection_to_node('localhost', :worker_2_proxy_port);
|
||||||
|
|
||||||
-- verify that the checks are not successful when timeouts happen on a connection
|
-- verify that the checks are not successful when timeouts happen on a connection
|
||||||
SET citus.node_connection_timeout TO 900;
|
SET citus.node_connection_timeout TO 900;
|
||||||
SELECT citus.mitmproxy('conn.connect_delay(1000)');
|
SELECT citus.mitmproxy('conn.connect_delay(1400)');
|
||||||
SELECT * FROM citus_check_connection_to_node('localhost', :worker_2_proxy_port);
|
SELECT * FROM citus_check_connection_to_node('localhost', :worker_2_proxy_port);
|
||||||
RESET citus.node_connection_timeout;
|
RESET citus.node_connection_timeout;
|
||||||
SELECT citus.mitmproxy('conn.allow()');
|
SELECT citus.mitmproxy('conn.allow()');
|
||||||
|
|
Loading…
Reference in New Issue