How to delete a row in cassandra materialiezed view?

匆匆过客 提交于 2021-02-10 05:28:05

问题


I have a cassadra namespace with a table and a materialized view from it. A row got deleted in the base table but the change was not propagated to the materialized view. I don't know the exact reason why this happend.

So now I am stuck with that row in the MV and I am not able to delete it. Any ideas?


回答1:


Yeah, materialized views are still very much broken. The two main problems are:

  1. There isn't a way to know when a MV is out of sync.
  2. Once it's out of sync, there really isn't a way to get it back in sync.

So it sounds like you're past point #1.

There is a nodetool rebuild_view command, but it does not clear-out existing data, which is what you would need.

Unfortunately, I think the only path forward is to DROP the view and re-create it.



来源:https://stackoverflow.com/questions/62086421/how-to-delete-a-row-in-cassandra-materialiezed-view

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