mirror of https://github.com/citusdata/citus.git
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> |
||
---|---|---|
.. | ||
task_tracker_protocol.c | ||
worker_create_or_replace.c | ||
worker_data_fetch_protocol.c | ||
worker_drop_protocol.c | ||
worker_partition_protocol.c | ||
worker_shard_visibility.c | ||
worker_sql_task_protocol.c | ||
worker_truncate_trigger_protocol.c |