Closed suesunss closed 2 years ago
@suesunss
请问在升级版本后,数据是可以无缝继续使用的吗?(比如使用 RocksDB 作为 backend)
各个版本的hugegraph后端并不一定兼容,如果后端存储数据的格式出现变动的时候,会改变相应的后端的版本号。以RocksDB为例,在RocksDBStoreProvider.java中会修改版本号。
这种情况下,迁移图数据需要使用 HugeGraph-tools 导出图的元数据和原始数据然后导入到新的 HugeGraph 实例中吗?
是的,可以使用hugegraph-tools的backup和restore子命令,对旧版本的数据进行备份导出,然后再恢复到新版本的图数据库中即可。可以参考:Backup Resotre
Due to the lack of activity, the current issue is marked as stale and will be closed after 20 days, any update will remove the stale label
Expected behavior 期望表现
使用 RocksDB 作为存储后端,在升级到新版本的 HugeGraph 后(master,或新的 release 版本)后,使用之前同一份的数据文件.
Actual behavior 实际表现
使用 RocksDB 作为存储后端,在升级到新版本的 HugeGraph 后(master,或新的 release 版本)后,使用之前同一份的数据文件,使用和之前的版本相同的图配置文件(*.properties),启动 HugeGraphServer 服务器成功。
但是,无法查询到数据,只有查询所有图名这样的 API 能用,其他的比如『分页查询所有顶点』之类的 API 都无法使用。比如分页查询所有顶点的时候,RESTful API 返回:
请问在升级版本后,数据是可以无缝继续使用的吗?(比如使用 RocksDB 作为 backend)
目前来看,应该是丢失了元数据。
这种情况下,迁移图数据需要使用
HugeGraph-tools
导出图的元数据和原始数据然后导入到新的 HugeGraph 实例中吗?Steps to reproduce the problem 复现步骤
Status of loaded data 数据状态
Vertex/Edge summary 数据量
Vertex/Edge example 数据示例
{type something here...}
Schema(VertexLabel, EdgeLabel, IndexLabel) 元数据结构
vertex: person properties: name, ...
edge: knows
Specifications of environment 环境信息