查询mutation操作
select * from `system`.mutations where is_done =0 limit 10
删除mutation操作
kill mutation where mutation_id='0000000002';
原因: 在启动期间,clickhouse会检查part的完整性。如果合并生成new part损毁,Clickhouse会将非活跃的Part返回到(active 1)后再次合并它们,然后重命名损坏part(添加broken_前缀)并将其移动到detached目录。如果合并生成的new part未损坏,则重命名原始非活跃part(添加ignored_前缀)并将其移动到deteched目录中。
有一些detached的文件
SELECT * FROM system.detached_parts where reason ='ignored'
ALTER TABLE table_name [ON CLUSTER cluster] DROP DETACHED PARTITION|PART partition_expr
删除的时候加 settings allow_drop_detached=1
use database;
SYSTEM STOP MERGES table1
SYSTEM start MERGES table1