diff --git a/.gitignore b/.gitignore index 44846b224..df447746a 100644 --- a/.gitignore +++ b/.gitignore @@ -55,4 +55,3 @@ lib*.pc # style related temporary outputs *.uncrustify .venv -test-cluster/* diff --git a/src/test/regress/expected/isolation_citus_pause_node.out b/src/test/regress/expected/isolation_citus_pause_node.out index 0307bc355..19f855156 100644 --- a/src/test/regress/expected/isolation_citus_pause_node.out +++ b/src/test/regress/expected/isolation_citus_pause_node.out @@ -72,3 +72,23 @@ step s2-end: step s1-end: COMMIT; + +starting permutation: s1-begin s1-node-not-found s1-end +step s1-begin: + BEGIN; + +s1: NOTICE: Node not found. +step s1-node-not-found: +DO $$ +BEGIN + select citus_pause_node(25000); +EXCEPTION + WHEN SQLSTATE 'P0002' THEN + RAISE NOTICE 'Node not found.'; +END; +$$ +LANGUAGE plpgsql; + +step s1-end: + COMMIT; + diff --git a/src/test/regress/spec/isolation_citus_pause_node.spec b/src/test/regress/spec/isolation_citus_pause_node.spec index 77af5dfd6..72af10eef 100644 --- a/src/test/regress/spec/isolation_citus_pause_node.spec +++ b/src/test/regress/spec/isolation_citus_pause_node.spec @@ -42,6 +42,20 @@ step "s1-begin" BEGIN; } +step "s1-node-not-found" +{ + DO $$ + BEGIN + select citus_pause_node(25000); + + EXCEPTION + WHEN SQLSTATE 'P0002' THEN + RAISE NOTICE 'Node not found.'; + END; + $$ + LANGUAGE plpgsql; +} + step "s1-pause-node" { SET client_min_messages = 'notice'; @@ -129,4 +143,5 @@ step "s2-end" COMMIT; } -permutation "s1-begin" "s1-pause-node" "s2-begin" "s2-insert" "s2-end" "s1-end" +permutation "s1-begin" "s1-pause-node" "s2-begin" "s2-insert" "s2-end" "s1-end" +permutation "s1-begin" "s1-node-not-found" "s1-end"