{"action":"created","issue":{"url":"https://api.github.com/repos/yandex/ClickHouse/issues/3322","repository_url":"https://api.github.com/repos/yandex/ClickHouse","labels_url":"https://api.github.com/repos/yandex/ClickHouse/issues/3322/labels{/name}","comments_url":"https://api.github.com/repos/yandex/ClickHouse/issues/3322/comments","events_url":"https://api.github.com/repos/yandex/ClickHouse/issues/3322/events","html_url":"https://github.com/yandex/ClickHouse/issues/3322","id":367881754,"node_id":"MDU6SXNzdWUzNjc4ODE3NTQ=","number":3322,"title":"znodes under /block_numbers seem to grow infinitely","user":{"login":"dqminh","id":62707,"node_id":"MDQ6VXNlcjYyNzA3","avatar_url":"https://avatars3.githubusercontent.com/u/62707?v=4","gravatar_id":"","url":"https://api.github.com/users/dqminh","html_url":"https://github.com/dqminh","followers_url":"https://api.github.com/users/dqminh/followers","following_url":"https://api.github.com/users/dqminh/following{/other_user}","gists_url":"https://api.github.com/users/dqminh/gists{/gist_id}","starred_url":"https://api.github.com/users/dqminh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dqminh/subscriptions","organizations_url":"https://api.github.com/users/dqminh/orgs","repos_url":"https://api.github.com/users/dqminh/repos","events_url":"https://api.github.com/users/dqminh/events{/privacy}","received_events_url":"https://api.github.com/users/dqminh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-08T17:16:54Z","updated_at":"2018-10-08T18:10:39Z","closed_at":null,"author_association":"NONE","body":"In our cluster, we regularly dropping old partitions out of the table. However, today i check some of Clickhouse's znodes and look like things under /block_numbers dont seem to be removed.\r\n\r\n```\r\n┌─version()─┐\r\n│ 1.1.54388 │\r\n└───────────┘\r\n```\r\n\r\nFor example, on 1 table which has (date, hour) as primary key, we have\r\n\r\n```\r\nget /clickhouse/cluster_name/tables/0/table_name/block_numbers\r\n\r\ncZxid = 0x233621bd6e\r\nctime = Mon Mar 19 17:52:34 UTC 2018\r\nmZxid = 0xdc1e6aab29\r\nmtime = Mon Oct 08 16:20:09 UTC 2018\r\npZxid = 0xdc1e6aab29\r\ncversion = 4435\r\ndataVersion = 1087\r\naclVersion = 0\r\nephemeralOwner = 0x0\r\ndataLength = 0\r\nnumChildren = 4435\r\n```\r\n\r\nThis has 4435 children, while it should really have around 25 children. Should this get cleared when partitions are dropped from the table ? I think this will also make merges much more expensive in term of Zookeeper usages.\r\n\r\ncc @vavrusa @alexey-milovidov @bobrik @bocharov "},"comment":{"url":"https://api.github.com/repos/yandex/ClickHouse/issues/comments/427929254","html_url":"https://github.com/yandex/ClickHouse/issues/3322#issuecomment-427929254","issue_url":"https://api.github.com/repos/yandex/ClickHouse/issues/3322","id":427929254,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzkyOTI1NA==","user":{"login":"vavrusa","id":139311,"node_id":"MDQ6VXNlcjEzOTMxMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/139311?v=4","gravatar_id":"","url":"https://api.github.com/users/vavrusa","html_url":"https://github.com/vavrusa","followers_url":"https://api.github.com/users/vavrusa/followers","following_url":"https://api.github.com/users/vavrusa/following{/other_user}","gists_url":"https://api.github.com/users/vavrusa/gists{/gist_id}","starred_url":"https://api.github.com/users/vavrusa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vavrusa/subscriptions","organizations_url":"https://api.github.com/users/vavrusa/orgs","repos_url":"https://api.github.com/users/vavrusa/repos","events_url":"https://api.github.com/users/vavrusa/events{/privacy}","received_events_url":"https://api.github.com/users/vavrusa/received_events","type":"User","site_admin":false},"created_at":"2018-10-08T18:10:39Z","updated_at":"2018-10-08T18:10:39Z","author_association":"CONTRIBUTOR","body":"The latest master switched to ephemeral locks for block numbers, but I'm not sure whether they're cleared when abandoned, @ztlpn would know."}}
{"actor":{"display_login":"vavrusa"}}