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

Maximum lock count exceeded when add edge #564

Closed
overflowedstack opened this issue Jun 12, 2019 · 0 comments · Fixed by #566
Closed

Maximum lock count exceeded when add edge #564

overflowedstack opened this issue Jun 12, 2019 · 0 comments · Fixed by #566

Comments

@overflowedstack
Copy link

Expected behavior 期望表现

使用gremlin 语句 直接 插入边, 每个request,插入100条。
gremlin 的片段如下。按道理应该能够插入数据。
g.V().hasLabel("Indicator").hasId("med_prior_131699411250").as("source").V().hasLabel("Product").hasId("1316994").as("target").addE("Indicator_RelateTo_Product").from("source").to("target").iterate();
g.V().hasLabel("Indicator").hasId("med_prior_131699811203").as("source").V().hasLabel("Product").hasId("1316998").as("target").addE("Indicator_RelateTo_Product").from("source").to("target").iterate();
g.V().hasLabel("Indicator").hasId("med_prior_131699811250").as("source").V().hasLabel("Product").hasId("1316998").as("target").addE("Indicator_RelateTo_Product").from("source").to("target").iterate();

Actual behavior 实际表现

提示锁超过最大值。

Caused by: com.baidu.hugegraph.exception.ServerException$ServerCause: java.lang.Error: Maximum lock count exceeded
at java.util.concurrent.locks.ReentrantReadWriteLock$Sync.tryReadLock(ReentrantReadWriteLock.java:585)
at java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.tryLock(ReentrantReadWriteLock.java:799)
at com.baidu.hugegraph.util.LockUtil.lockRead(LockUtil.java:90)
at com.baidu.hugegraph.util.LockUtil.access$100(LockUtil.java:41)
at com.baidu.hugegraph.util.LockUtil$Locks.lockRead(LockUtil.java:188)
at com.baidu.hugegraph.util.LockUtil$Locks.lockReads(LockUtil.java:183)
at com.baidu.hugegraph.util.LockUtil$LocksTable.lockReads(LockUtil.java:249)
at com.baidu.hugegraph.util.LockUtil$LocksTable.lockReads(LockUtil.java:237)
at com.baidu.hugegraph.backend.tx.GraphTransaction.addEdge(GraphTransaction.java:516)
at com.baidu.hugegraph.structure.HugeVertex.addEdge(HugeVertex.java:295)
at com.baidu.hugegraph.structure.HugeVertex.addEdge(HugeVertex.java:60)
at org.apache.tinkerpop.gremlin.process.traversal.step.map.AddEdgeStep.map(AddEdgeStep.java:99)
at org.apache.tinkerpop.gremlin.process.traversal.step.map.AddEdgeStep.map(AddEdgeStep.java:49)
at org.apache.tinkerpop.gremlin.process.traversal.step.map.MapStep.processNextStart(MapStep.java:37)
at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.next(AbstractStep.java:128)
at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.next(AbstractStep.java:38)
at org.apache.tinkerpop.gremlin.process.traversal.Traversal.iterate(Traversal.java:198)
at org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal.iterate(GraphTraversal.java:2677)
at org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal$Admin.iterate(GraphTraversal.java:176)
at org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.DefaultGraphTraversal.iterate(DefaultGraphTraversal.java:48)
at org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal$Admin$iterate$0.call(Unknown Source)
at Script4.run(Script4.groovy:28)

Steps to reproduce the problem 复现步骤

  1. 一个request 构建 一百条 merge relation 的 gremlin语句。 然后用 hugeclient 发送gemline 语句到服务器。
    2、刚才开始 几个request 能够正确执行,但是遇到后面提示 上述lock 超过最大值的错误。

Status of loaded data 数据状态

Vertex/Edge summary 数据量

  • loaded vertices amount: 16万
    -loaded edges amount : 50万

Vertex/Edge example 数据示例

{type something here...}

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

{type something here...}

Specifications of environment 环境信息

  • hugegraph version: 0.8.0
  • operating system: centos
  • hugegraph backend: cassandra 3.10
zhoney added a commit that referenced this issue Jun 13, 2019
fixed: #564

Change-Id: I026e4a6739c7f526c421cbb5c90b48e5ff8de066
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

Successfully merging a pull request may close this issue.

1 participant