我有一个2节点的cassandra集群,RF = 2 . 发出 delete from x where y cql语句时 - 是否知道所有节点删除该行需要多长时间?
delete from x where y
我在其中一个集成测试中看到的内容:删除了一行,删除的结果用 select * from y where id = xxx 语句测试 . 我看到的是,有时结果不是预期的null,并且仍然找到已删除的行 .
select * from y where id = xxx
使用CL = 2读取正确的approch以获得我期望的结果吗?
我假设你正在使用默认一致性而删除即1和1 2> 2(即W R> N)在你的情况下因此它是好的 .
副本的本地将是sub ms . 从 app->coordinator->replica->coordinator->app 网络跃点开始,时间占主导地位 . 使用quorum或local_quorum可以在写入和读取等顺序请求之间保持一致性 .
app->coordinator->replica->coordinator->app
2 回答
我假设你正在使用默认一致性而删除即1和1 2> 2(即W R> N)在你的情况下因此它是好的 .
副本的本地将是sub ms . 从
app->coordinator->replica->coordinator->app
网络跃点开始,时间占主导地位 . 使用quorum或local_quorum可以在写入和读取等顺序请求之间保持一致性 .