Hector(Cassandra)删除异常 [英] Hector (Cassandra) Delete Anomaly

查看:209
本文介绍了Hector(Cassandra)删除异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试删除时,使用hector(cassandra客户端),它删除列...但留下行键后面...有人知道为什么,如何删除该行键?

Using hector (cassandra client) when I try to do delete, it deletes the columns…but leaves the row key behind…does anyone know why, and how can I delete that row key as well ?

推荐答案

这是使用Cassandra时的预期。因为它通过写入墓碑删除,数据仍然存在,直到下一个压缩。最终,它会完全成功,但你的应用程序代码必须知道一个空行与被删除的行相同。

This is expected when using Cassandra. Since it deletes by writing tombstones the data is still there until the next compaction. Eventually it will go a way completely, but your application code must be aware that an empty row is the same as a deleted row.

这篇关于Hector(Cassandra)删除异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆