Skip to content

Commit 9147777

Browse files
authored
Update detached-parts.md
1 parent c33f932 commit 9147777

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

content/en/altinity-kb-useful-queries/detached-parts.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ clone
4747
covered-by-broken - that means that clickhouse during initialization of replicated table detected that some part is not ok, and decided to refetch it from healthy replicas. So the part itself will be detached as 'broken' and if that part was a result of merge / mutation all the previuos generations of that will be marked as covered-by-broken. If clickhouse was able to download the final part you don't need those covered-by-broken.
4848
```
4949

50-
## See also
50+
## Cleaning up detached parts automatically
5151

52-
Since 22.6 clickhouse can clean old detached files automtically
53-
See https://github.com/ClickHouse/ClickHouse/pull/37975/
52+
Since 22.6 ClickHouse can clean old detached files automtically (see https://github.com/ClickHouse/ClickHouse/pull/37975/)
53+
54+
It is controlled by two merge_tree settings:
55+
* merge_tree_clear_old_broken_detached_parts_ttl_timeout_seconds -- default is 30 days (3600*24*30)
56+
* merge_tree_enable_clear_old_broken_detached -- default is 0 (disabled). Set it to 1 to enable automatic cleanup.

0 commit comments

Comments
 (0)