citus/src/backend/distributed/worker
Ahmet Gedemenli 235047670d
Drop SHARD_STATE_TO_DELETE (#6494)
DESCRIPTION: Drop `SHARD_STATE_TO_DELETE` and use the cleanup records
instead

Drops the shard state that is used to mark shards as orphaned. Now we
insert cleanup records into `pg_dist_cleanup` so "orphaned" shards will
be dropped either by maintenance daemon or internal cleanup calls. With
this PR, we make the "cleanup orphaned shards" functions to be no-op, as
they would not be needed anymore.

This PR includes some naming changes about placement functions. We don't
need functions that filter orphaned shards, as there will be no orphaned
shards anymore.

We will also be introducing a small script with this PR, for users with
orphaned shards. We'll basically delete the orphaned shard entries from
`pg_dist_placement` and insert cleanup records into `pg_dist_cleanup`
for each one of them, during Citus upgrade.

We also have a lot of flakiness fixes in this PR.

Co-authored-by: Jelte Fennema <github-tech@jeltef.nl>
2023-01-03 14:38:16 +03:00
..
task_tracker_protocol.c update test outputs with task-tracker removal 2020-07-21 16:25:08 +03:00
worker_create_or_replace.c address method should take parameter isPostprocess 2022-08-02 21:00:23 +03:00
worker_data_fetch_protocol.c Grammar: it's to its 2022-11-28 20:43:44 +00:00
worker_drop_protocol.c Drop SHARD_STATE_TO_DELETE (#6494) 2023-01-03 14:38:16 +03:00
worker_partition_protocol.c Remove old re-partitioning functions 2022-04-04 18:11:52 +02:00
worker_shard_visibility.c Add caching for functions that check the backend type 2022-05-20 19:02:37 +02:00
worker_sql_task_protocol.c Refactor/partitioned result destreceiver (#5432) 2021-11-05 13:31:18 +01:00
worker_truncate_trigger_protocol.c Use current user to sync metadata 2021-07-16 13:25:27 +02:00