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

feat: Allow to set max_suspicious_broken_parts in merge_tree settings… #1080

Merged
merged 2 commits into from
Nov 27, 2023
Merged

feat: Allow to set max_suspicious_broken_parts in merge_tree settings… #1080

merged 2 commits into from
Nov 27, 2023

Conversation

mrouhi13
Copy link
Contributor

A few days ago I faced a problem in one of our clickhouse replicas. When clickhouse tries to init db it needs to merge broken parts of data to a single partition and it needs to delete those files afterward. If the number of those files exceeded the number set in the configuration it denied deletion (here) and db doesn't init, so what we need to do is increase the max_suspicious_broken_parts value to cover those broken file numbers.

Unfortunately, it is not possible to set the above settings via chart values so I decided to add handling these specific params.

Copy link
Contributor

@Mokto Mokto left a comment

Choose a reason for hiding this comment

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

Thanks. Could you please upgrade the minor version of the chart instead?

@Mokto Mokto merged commit d2f305c into sentry-kubernetes:develop Nov 27, 2023
1 check passed
@@ -165,6 +165,7 @@ data:
<parts_to_delay_insert>{{ .Values.clickhouse.configmap.merge_tree.parts_to_delay_insert }}</parts_to_delay_insert>
<parts_to_throw_insert>{{ .Values.clickhouse.configmap.merge_tree.parts_to_throw_insert }}</parts_to_throw_insert>
<max_part_loading_threads>{{ .Values.clickhouse.configmap.merge_tree.max_part_loading_threads }}</max_part_loading_threads>
<max_suspicious_broken_parts>100</max_suspicious_broken_parts>
</merge_tree>
Copy link
Contributor

Choose a reason for hiding this comment

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

This shouldn't be hardcoded.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, I will fix it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Possible to push a change for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

PR created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants