为什么在 Truncate table 之前将 Consistency 设置为 ALL

Why set Consistency to ALL before Truncate table

根据来自 apache-cassandra 的docs from datastax, it's good to use the cqlsh CONSISTENCY command to set the consistency level to ALL. I saw same recommendation from many other places. But why should we do that? Especially, in native protocol specification,截断查询似乎会忽略我们之前设置的一致性。

截断命令要求所有节点都启动,如果有任何节点关闭,无论一致性级别如何,它都会先发制人地失败。你是对的,你不需要那样做。

此外,CQL truncate 根本不再使用 JMX(底部的简介),那是 cql3 之前的节俭日,所以它可能只是尚未更新的旧文档。