Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove citus.shard_placement_policy #5690

Merged
merged 2 commits into from Feb 7, 2022

Conversation

marcocitus
Copy link
Member

DESCRIPTION: Removes citus.shard_placement_policy

The citus.shard_placement_policy GUC is only used in master_create_empty_shard, which exists primarily as rudimentary shard creation mechanism for range/append-distributed tables. After this PR, master_create_empty_shard uses round-robin placement when replication factor > 1, same as create_distributed_table does for hash-distributed tables.

The removed code was not covered by any tests.

@codecov
Copy link

codecov bot commented Feb 6, 2022

Codecov Report

Merging #5690 (872f0a7) into master (c8e504d) will increase coverage by 0.19%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #5690      +/-   ##
==========================================
+ Coverage   92.60%   92.79%   +0.19%     
==========================================
  Files         219      219              
  Lines       46454    46353     -101     
==========================================
- Hits        43017    43015       -2     
+ Misses       3437     3338      -99     

@@ -1629,22 +1622,6 @@ RegisterCitusConfigVariables(void)
GUC_STANDARD,
NULL, NULL, NULL);

DefineCustomEnumVariable(
"citus.shard_placement_policy",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quite interesting that we didn't have any files testing this guc (i.e.: set citus.shard_placement_policy to foo)

@marcocitus marcocitus merged commit d785870 into master Feb 7, 2022
@marcocitus marcocitus deleted the marcocitus/placement-policy-cleanup branch February 7, 2022 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants