mirror of https://github.com/citusdata/citus.git
Fix worker node version check
parent
22a18fc1f2
commit
5bb5359da0
|
@ -117,10 +117,9 @@ END;
|
||||||
|
|
||||||
-- first, check if all nodes have the same versions
|
-- first, check if all nodes have the same versions
|
||||||
SELECT
|
SELECT
|
||||||
count(*) INTO worker_node_version_count
|
count(distinct result) INTO worker_node_version_count
|
||||||
FROM
|
FROM
|
||||||
run_command_on_workers('SELECT extversion from pg_extension WHERE extname = ''citus'';')
|
run_command_on_workers('SELECT extversion from pg_extension WHERE extname = ''citus''');
|
||||||
GROUP BY result;
|
|
||||||
IF enforce_version_check AND worker_node_version_count != 1 THEN
|
IF enforce_version_check AND worker_node_version_count != 1 THEN
|
||||||
RAISE EXCEPTION 'All nodes should have the same Citus version installed. Currently '
|
RAISE EXCEPTION 'All nodes should have the same Citus version installed. Currently '
|
||||||
'some of the workers have different versions.';
|
'some of the workers have different versions.';
|
||||||
|
|
|
@ -117,10 +117,9 @@ END;
|
||||||
|
|
||||||
-- first, check if all nodes have the same versions
|
-- first, check if all nodes have the same versions
|
||||||
SELECT
|
SELECT
|
||||||
count(*) INTO worker_node_version_count
|
count(distinct result) INTO worker_node_version_count
|
||||||
FROM
|
FROM
|
||||||
run_command_on_workers('SELECT extversion from pg_extension WHERE extname = ''citus'';')
|
run_command_on_workers('SELECT extversion from pg_extension WHERE extname = ''citus''');
|
||||||
GROUP BY result;
|
|
||||||
IF enforce_version_check AND worker_node_version_count != 1 THEN
|
IF enforce_version_check AND worker_node_version_count != 1 THEN
|
||||||
RAISE EXCEPTION 'All nodes should have the same Citus version installed. Currently '
|
RAISE EXCEPTION 'All nodes should have the same Citus version installed. Currently '
|
||||||
'some of the workers have different versions.';
|
'some of the workers have different versions.';
|
||||||
|
|
Loading…
Reference in New Issue