如何解决ERROR索引不一致:索引有永远不会被回收的泄漏页面,pageId=X? Neo4j

问题描述 投票:0回答:1

我对 Neo4j 转储文件执行了一致性检查,该文件是从 Neo4j 数据库(5.8.0 版本)生成的。我运行了命令:

sudo neo4j-admin database check --from-path=./ neo4j

检查报告,有这样的错误:

...

ERROR Index inconsistency: Index has a leaked page that will never be reclaimed, pageId=208.
Index will be excluded from further consistency checks. Index file: /data1/dumps2/4459558985020293571/neo4j/schema/index/range-1.0/75/index-75.

ERROR Index inconsistency: Index has a leaked page that will never be reclaimed, pageId=247.
Index will be excluded from further consistency checks. Index file: /data1/dumps2/4459558985020293571/neo4j/schema/index/range-1.0/75/index-75.

...

如何解决不一致错误?

我搜索过信息,但在谷歌上几乎没有结果。我希望解决不一致问题,然后将转储上传到 Neo4j 的 AuraDB 远程数据库中。

neo4j graph-databases
1个回答
0
投票

一致性错误指向 RANGE 索引

Index will be excluded from further consistency checks. Index file: /data1/dumps2/4459558985020293571/neo4j/schema/index/range-1.0/75/index-75.
  1. 运行
    SHOW RANGE INDEXES
    查看所有 RANGE 索引
  2. 删除索引`DROP INDEX IF EXISTS
  3. 重新创建索引
  4. 再次运行一致性检查
© www.soinside.com 2019 - 2024. All rights reserved.