apache / incubator-hugegraph

A graph database that supports more than 100+ billion data, high performance and scalability (Include OLTP Engine & REST-API & Backends)
https://hugegraph.apache.org
Apache License 2.0
2.66k stars 520 forks source link

[Bug] can't delete index after reboot server #2161

Open cygoodboy opened 1 year ago

cygoodboy commented 1 year ago

Bug Type (问题类型)

other exception / error (其他异常报错)

Before submit

Environment (环境信息)

Expected & Actual behavior (期望与实际表现)

复现方式:集群下任意创建一些顶点类型,然后添加一些索引,任意添加一些顶点数据进去,删除不掉索引(边也会有类似的情况)。

问题:集群模式下删除索引 不成功,重启服务端集群之后,删除的索引不见了,hubble报错

cause: "org.apache.hugegraph.HugeException: Can't write json: Undefined index label with id: '27' (through reference chain: java.util.Arrayist[2])" https://user-images.githubusercontent.com/26705277/224275094-07a12f7e-4327-43cf-9f65-9f9c4f023ad5.jpg

Vertex/Edge example (问题点 / 边数据举例)

No response

Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)

No response

yangyang0204 commented 1 year ago

我也遇到了一样的问题, @cygoodboy 请问后来有想到解决方法吗?

imbajin commented 1 year ago

@JackyYangPassion

any info about hbase env with it?

yangyang0204 commented 1 year ago

我这边的存储使用的的cassandra,版本信息如下: hugegraph-0.11.2 apache-cassandra-3.11.4 hugegraph-hubble-1.5.0 jdk1.8.0_152

错误信息如下:

image

昨天尝试了一下重建索引,直接根据索引名重建是失败的,错误信息为【索引不存在】,根据节点重建索引成功,但是没有起到任何作用。 image

观察发现,直接查询索引确实查询不到,但是节点仍然在使用这个索引,请问有什么方式直接清理掉这种使用关系吗? 谢谢~

@imbajin

imbajin commented 1 year ago

@liuxiaocs7 @simon824 we could consider use spark/flink to load the full data & clean it? (if we meet dirty data (graph element & index element)