且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Cassandra-意外删除后恢复数据

更新时间:2022-04-24 22:20:09

您将要从提交日志中执行还原。
最安全的方法是将提交日志复制到具有相同架构的新集群,并按照 commitlog_archiving.properties 文件中的说明(注释)进行还原。对于您而言,您需要将 restore_point_in_time 设置为插入和删除之间的时间。

You will want to execute a restore from your commitlog. The safest is to copy the commitlog to a new cluster (with same schema), and restore following the instructions (comments) from commitlog_archiving.properties file. In your case, you will want to set restore_point_in_time to a time between your insert and your delete.