Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在使用1.4.1版本的OGM,遇到超时问题 #18

Open
w00125533 opened this issue Nov 12, 2024 · 0 comments
Open

在使用1.4.1版本的OGM,遇到超时问题 #18

w00125533 opened this issue Nov 12, 2024 · 0 comments

Comments

@w00125533
Copy link

Describe the bug
在使用1.4.1版本的OGM,运行自带的Test,链接4.0.1版本的TuGraph时,遇到超时问题,Debug后发现生成的Cypher语句长时间执行,未反馈结果:

Steps to reproduce the behavior:
1.打开OGM的Test文件:tugraph-db-client-java/ogm/tugraph-db-ogm-test/src/main/java/test/TestBase.java
2. 配置对应图数据库URL、用户名、密码、并执行用例:
3. 程序跑到170行这个位置发生超时错误:session.save(movie);
image
4. 错误堆栈如下:

Exception in thread "main" java.lang.RuntimeException: com.antgroup.tugraph.TuGraphDbRpcException: Task killed.
at com.antgroup.tugraph.ogm.drivers.rpc.request.RpcRequest.executeRequest(RpcRequest.java:345)
at com.antgroup.tugraph.ogm.drivers.rpc.request.RpcRequest.execute(RpcRequest.java:106)
at com.antgroup.tugraph.ogm.session.request.RequestExecutor.executeStatements(RequestExecutor.java:131)
at com.antgroup.tugraph.ogm.session.request.RequestExecutor.lambda$executeSave$2(RequestExecutor.java:97)
at com.antgroup.tugraph.ogm.session.Neo4jSession.lambda$doInTransaction$1(Neo4jSession.java:553)
at com.antgroup.tugraph.ogm.session.Neo4jSession.doInTransaction(Neo4jSession.java:585)
at com.antgroup.tugraph.ogm.session.Neo4jSession.doInTransaction(Neo4jSession.java:552)
at com.antgroup.tugraph.ogm.session.request.RequestExecutor.executeSave(RequestExecutor.java:80)
at com.antgroup.tugraph.ogm.session.delegates.SaveDelegate.save(SaveDelegate.java:90)
at com.antgroup.tugraph.ogm.session.delegates.SaveDelegate.save(SaveDelegate.java:51)
at com.antgroup.tugraph.ogm.session.Neo4jSession.save(Neo4jSession.java:475)
at com.antgroup.openspg.reasoner.runner.local.Client.testCreate(Client.java:115)
at com.antgroup.openspg.reasoner.runner.local.Client.main(Client.java:79)

Expected behavior
期望运行成功,成功写入数据库端

Screenshots
If applicable, add screenshots to help explain your problem.

Environment:

  • 服务端OS: ubuntu 16.04.10

Additional context
Debug后的生成的Cypher如下,直接在客户端执行,界面直接挂住;

MATCH (startNode0),(endNode0),(startNode1),(endNode1) WHERE id(startNode0) = 74677 AND id(endNode0) = 74676 AND id(startNode1) = 74678 AND id(endNode1) = 74676 MERGE (startNode0)-[rel0:ACTS_IN]->(endNode0) MERGE (startNode1)-[rel1:ACTS_IN]->(endNode1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant