Hector (Cassandra) Delete Anomaly

筅森魡賤 提交于 2019-12-22 05:42:30

问题


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 ?


回答1:


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.




回答2:


Actually, it will go away in the next compaction that happens after the grace period for that row.

Check this out: Wikipedia



来源:https://stackoverflow.com/questions/7341439/hector-cassandra-delete-anomaly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!