[Feature Request]: Snapshot BR
Is there an existing issue for the same feature request?
- [X] I have checked the existing issues.
Is your feature request related to a problem?
No response
Describe the feature you'd like
PRD:https://doc.weixin.qq.com/doc/w3_AZUAugYIAOcs4alj5J6TpS2c3sP2H?scode=AJsA6gc3AA8x2DA4ieAZUAugYIAOc 需求讨论:https://doc.weixin.qq.com/doc/w3_AZUAugYIAOc4BfHbkHHSCC6R1j8eq?scode=AJsA6gc3AA8bPG5MBhAZUAugYIAOc 1、将集群/单机所有的数据还原到最近 N 天的任意时刻 2、将集群/单机所有的数据还原到某个确定时刻 3、将集群中某个租户/库/表的数据还原到最近 N 天的任意时刻 3、将集群中某个租户/库/表的数据还原到某个确定时刻
Describe implementation you've considered
No response
Documentation, Adoption, Use Case, Migration Strategy
No response
Additional information
No response
dup with #11492
dev design:https://github.com/matrixorigin/docs/pull/272#pullrequestreview-1916370081
dup with #11492
#11492 的需求范围定为租户级别的全量数据拷贝备份吧。
快照备份优化:https://github.com/matrixorigin/matrixone/issues/17537
系统租户恢复系统租户/database/table,测试已完成; 系统租户恢复普通租户,测试已完成; 系统租户恢复普通租户到新租户,测试已完成; 普通租户恢复普通租户/database/table,测试已完成
遗留bug,均在 #https://github.com/matrixorigin/MO-Cloud/issues/3138跟踪
the feature is done. fix bugs in the future
snapshot测试内容:
1. 创建snapshot
系统租户为系统租户创建snapshot、普通租户为普通租户创建snapshot、系统租户为集群创建snapshot
2. 根据snapshot恢复
系统租户恢复系统租户account/dababase/table到sys租户;
系统租户恢复普通租户account到普通租户;
系统租户恢复普通租户account到新租户;
普通租户恢复普通租户account/database/table到普通租户;
集群级别的snapshot恢复集群,恢复租户到当前租户.
已知限制:
1. 该版本暂不支持开始恢复对象时,正在访问该对象的sql(恢复 sql 除外)会被立即中断;正在恢复对象时,不允许新的 sql 访问该对象.
2. 无法恢复已经被删除的account;
3. sql方式不支持新建租户并恢复数据到该租户
遗留问题issue跟踪,该feature关闭