apache / incubator-hugegraph-toolchain

HugeGraph toolchain - include a series useful graph modules
https://hugegraph.apache.org/
Apache License 2.0
89 stars 91 forks source link

[Bug] start server error : Expect just one result, but got at least two #476

Closed DirkJia closed 1 year ago

DirkJia commented 1 year ago

Bug Type (问题类型)

exception / error (异常报错)

Before submit

Environment (环境信息)

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

运行很长一段时间后出现报错,提示两个backend info

Exception in thread "main" com.baidu.hugegraph.HugeException: Expect just one result, but got at least two: [TableBackendEntry{Row{type=PROPERTY_KEY, id=null, columns={USER_DATA={version="1.9", ~create_time="2022-07-20 01:49:37.887"}, AGGREGATE_TYPE=0, PROPERTIES=[], NAME=~backend_info, DATA_TYPE=8, STATUS=1, ID=-33, CARDINALITY=1}}, sub-rows: []}, TableBackendEntry{Row{type=PROPERTY_KEY, id=null, columns={USER_DATA={version="1.9", ~create_time="2023-06-02 09:58:38.300"}, AGGREGATE_TYPE=0, PROPERTIES=[], NAME=~backend_info, DATA_TYPE=8, STATUS=1, ID=-1397, CARDINALITY=1}}, sub-rows: []}]
        at com.baidu.hugegraph.backend.query.QueryResults.one(QueryResults.java:228)
        at com.baidu.hugegraph.backend.query.QueryResults.one(QueryResults.java:87)
        at com.baidu.hugegraph.backend.tx.SchemaTransaction.getSchema(SchemaTransaction.java:327)
        at com.baidu.hugegraph.backend.cache.CachedSchemaTransaction.getSchema(CachedSchemaTransaction.java:240)
        at com.baidu.hugegraph.backend.tx.SchemaTransaction.getPropertyKey(SchemaTransaction.java:128)
        at com.baidu.hugegraph.backend.store.BackendStoreSystemInfo.info(BackendStoreSystemInfo.java:72)
        at com.baidu.hugegraph.backend.store.BackendStoreSystemInfo.exists(BackendStoreSystemInfo.java:92)
        at com.baidu.hugegraph.cmd.InitStore.initGraph(InitStore.java:116)
        at com.baidu.hugegraph.cmd.InitStore.main(InitStore.java:99)

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

No response

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

No response

imbajin commented 1 year ago

is this a server problem?(seems not a toolchain pic)

and do u try the latest version(apache 1.0.0)?

DirkJia commented 1 year ago

is this a server problem?(seems not a toolchain pic)

and do u try the latest version(apache 1.0.0)?

yes,it happened too suddenly, can I have a temporary solution instead of upgrading now?

DirkJia commented 1 year ago

is this a server problem?(seems not a toolchain pic)

and do u try the latest version(apache 1.0.0)?

Is it necessary to raise another issue for project of incubator-hugegraph?

DirkJia commented 1 year ago

is this a server problem?(seems not a toolchain pic)

and do u try the latest version(apache 1.0.0)?

Do I need to delete the data in the the table of pk ? Also, in what scenarios would this situation typically occur?

imbajin commented 1 year ago

is this a server problem?(seems not a toolchain pic)

and do u try the latest version(apache 1.0.0)?

Is it necessary to raise another issue for project of incubator-hugegraph?

nope,and the issue could transfer directly (but we need more time for the outdated version)

also u could add some backend info(edit the top comment)

DirkJia commented 1 year ago

is this a server problem?(seems not a toolchain pic) and do u try the latest version(apache 1.0.0)?

Is it necessary to raise another issue for project of incubator-hugegraph?

nope,and the issue could transfer directly (but we need more time for the outdated version)

also u could add some backend info(edit the top comment)

done. and i am I deleting data by tracing the code. If it doesn't work, I shall switch to another Cassandra database to try it out

DirkJia commented 1 year ago

is this a server problem?(seems not a toolchain pic) and do u try the latest version(apache 1.0.0)?

Is it necessary to raise another issue for project of incubator-hugegraph?

nope,and the issue could transfer directly (but we need more time for the outdated version) also u could add some backend info(edit the top comment)

done. and i am I deleting data by tracing the code. If it doesn't work, I shall switch to another Cassandra database to try it out

I deleted some duplicate data from the tables like vl,il,el,pk,c etc,and now it's working fine。

I suspect that Cassandra has three nodes in total, and two of them were restarted, causing HugeGraph to not read the metadata. Therefore, the metadata was written again. When Cassandra is back to normal, the data became duplicated, causing the HugeGraph verification to fail. I am not sure if the new version has fixed this issue?