citus/src
Jelte Fennema 9b5027917a Fix flakyness in failure_create_distributed_table_non_empty (#6217)
The failure_create_distributed_table_non_empty test would sometimes fail
like this:
```diff
 -- in the first test, cancel the first connection we sent from the coordinator
 SELECT citus.mitmproxy('conn.cancel(' ||  pg_backend_pid() || ')');
- mitmproxy
----------------------------------------------------------------------
-
-(1 row)
-
+ERROR:  canceling statement due to user request
+CONTEXT:  COPY mitmproxy_result, line 1: ""
+SQL statement "COPY mitmproxy_result FROM '/home/circleci/project/src/test/regress/tmp_check/mitmproxy.fifo'"
+PL/pgSQL function citus.mitmproxy(text) line 11 at EXECUTE
 SELECT create_distributed_table('test_table', 'id');
```

Because the cancel command had no filter it would actually sometimes
cancel the mitmproxy cancel command itself. This PR addresses that by
filtering on CREATE TABLE, which is one of the command that
create_distributed_table will send to the workers.

Example of failing test: https://app.circleci.com/pipelines/github/citusdata/citus/26252/workflows/1b7e5464-cca4-4ec1-99b3-48ddf25c29fa/jobs/742829

(cherry picked from commit e2a24b921e)
2022-09-07 13:27:49 +02:00
..
backend Define symbols required for downgrade from 11.1 (#6301) 2022-09-07 12:18:39 +02:00
bin/pg_send_cancellation Make enterprise features open source 2022-06-16 08:09:45 +02:00
include Add an allow_unsafe_constraints flag for constraints without distribution column (#6237) 2022-08-25 16:13:07 +02:00
test Fix flakyness in failure_create_distributed_table_non_empty (#6217) 2022-09-07 13:27:49 +02:00