1. 问题背景
clickhouse安装在虚拟机上,持续写入日志时,突然关机,然后重启,会出现clickhouse可以正常启动,但是查询sql语句,提示suspiciously many异常,如图所示
2. 问题修复
touch /data/clickhouse/flags/force_restore_data
chown -R clickhouse:clickhouse /data/clickhouse/flags/force_restore_data
service clickhouse-server restart
重启clickhouse即可