mirror of https://github.com/citusdata/citus.git
Grep logs for deterministic global_cancel test results (#5948)
(cherry picked from commit 313104ab9b
)
release-11.0-ozan
parent
c440cbb643
commit
530aafd8ee
|
@ -1,6 +1,7 @@
|
||||||
CREATE SCHEMA global_cancel;
|
CREATE SCHEMA global_cancel;
|
||||||
SET search_path TO global_cancel;
|
SET search_path TO global_cancel;
|
||||||
SET citus.next_shard_id TO 56789000;
|
SET citus.next_shard_id TO 56789000;
|
||||||
|
SET citus.grep_remote_commands TO '%pg_cancel_backend%';
|
||||||
CREATE TABLE dist_table (a INT, b INT);
|
CREATE TABLE dist_table (a INT, b INT);
|
||||||
SELECT create_distributed_table ('dist_table', 'a', shard_count:=4);
|
SELECT create_distributed_table ('dist_table', 'a', shard_count:=4);
|
||||||
create_distributed_table
|
create_distributed_table
|
||||||
|
@ -25,8 +26,6 @@ DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
||||||
ERROR: canceling statement due to user request
|
ERROR: canceling statement due to user request
|
||||||
BEGIN;
|
BEGIN;
|
||||||
SELECT pg_cancel_backend(:coordinator_gpid) FROM dist_table WHERE a = 1;
|
SELECT pg_cancel_backend(:coordinator_gpid) FROM dist_table WHERE a = 1;
|
||||||
NOTICE: issuing BEGIN TRANSACTION ISOLATION LEVEL READ COMMITTED;SELECT assign_distributed_transaction_id(xx, xx, 'xxxxxxx');
|
|
||||||
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
||||||
NOTICE: issuing SELECT pg_cancel_backend('xxxxx'::bigint) AS pg_cancel_backend FROM global_cancel.dist_table_56789000 dist_table WHERE (a OPERATOR(pg_catalog.=) 1)
|
NOTICE: issuing SELECT pg_cancel_backend('xxxxx'::bigint) AS pg_cancel_backend FROM global_cancel.dist_table_56789000 dist_table WHERE (a OPERATOR(pg_catalog.=) 1)
|
||||||
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
||||||
ERROR: canceling statement due to user request
|
ERROR: canceling statement due to user request
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
CREATE SCHEMA global_cancel;
|
CREATE SCHEMA global_cancel;
|
||||||
SET search_path TO global_cancel;
|
SET search_path TO global_cancel;
|
||||||
SET citus.next_shard_id TO 56789000;
|
SET citus.next_shard_id TO 56789000;
|
||||||
|
SET citus.grep_remote_commands TO '%pg_cancel_backend%';
|
||||||
|
|
||||||
CREATE TABLE dist_table (a INT, b INT);
|
CREATE TABLE dist_table (a INT, b INT);
|
||||||
SELECT create_distributed_table ('dist_table', 'a', shard_count:=4);
|
SELECT create_distributed_table ('dist_table', 'a', shard_count:=4);
|
||||||
|
|
Loading…
Reference in New Issue