incubator-hugegraph icon indicating copy to clipboard operation
incubator-hugegraph copied to clipboard

hbase 作为后端,hugestudio 使用 g.V().hasLabel('role').limit(10)出错

Open fisherinbox opened this issue 8 years ago • 0 comments

Expected behavior 期望表现

正常查询

Actual behavior 实际表现

g.V().hasLabel('role').limit(10) 出错,去掉hasLabel('role') 正常返回 使用rocksdb g.V().hasLabel('role').limit(10) 正常 报错信息: 2018-10-08 17:12:33 1599346 [gremlin-server-exec-16] [WARN ] org.apache.tinkerpop.gremlin.server.handler.HttpGremlinEndpointHandler [] - Invalid request - responding with 500 Internal Server Error and Too many records(must <=800000) for the query: Query for VERTEX offset=0, limit=9223372036854775807, order by {} where id in [2:100259, 2:100260, 2:100261, 2:100262, 2:100264, 2:100265, 2:100266, 2:100276, 2:100277, 2:100278, 2:100279, 2:100280, 2:100281, 2:100282, 2:100283, 2:100284, 2:100288, 2:10028... com.baidu.hugegraph.exception.LimitExceedException: Too many records(must <=800000) for the query: Query for VERTEX offset=0, limit=9223372036854775807, order by {} where id in [2:100259, 2:100260, 2:100261, 2:100262, 2:100264, 2:100265, 2:100266, 2:100276, 2:100277, 2:100278, 2:100279, 2:100280, 2:100281, 2:100282, 2:100283, 2:100284, 2:100288, 2:10028... at com.baidu.hugegraph.backend.query.Query.checkCapacity(Query.java:203) ~[hugegraph-core-0.8.0.jar:0.8.0.0] at com.baidu.hugegraph.backend.query.IdQuery.query(IdQuery.java:76) ~[hugegraph-core-0.8.0.jar:0.8.0.0] at com.baidu.hugegraph.backend.query.IdQuery.query(IdQuery.java:82) ~[hugegraph-core-0.8.0.jar:0.8.0.0] at com.baidu.hugegraph.backend.query.IdQuery.(IdQuery.java:61) ~[hugegraph-core-0.8.0.jar:0.8.0.0] at com.baidu.hugegraph.backend.tx.GraphIndexTransaction.query(GraphIndexTransaction.java:360) ~[hugegraph-core-0.8.0.jar:0.8.0.0] at com.baidu.hugegraph.backend.tx.GraphTransaction.optimizeQuery(GraphTransaction.java:961) ~[hugegraph-core-0.8.0.jar:0.8.0.0] at com.baidu.hugegraph.backend.tx.GraphTransaction.query(GraphTransaction.java:292) ~[hugegraph-core-0.8.0.jar:0.8.0.0] at com.baidu.hugegraph.backend.tx.GraphTransaction.queryVerticesFromBackend(GraphTransaction.java:452) ~[hugegraph-core-0.8.0.jar:0.8.0.0] at com.baidu.hugegraph.backend.tx.GraphTransaction.queryVertices(GraphTransaction.java:443) ~[hugegraph-core-0.8.0.jar:0.8.0.0] at com.baidu.hugegraph.backend.cache.CachedGraphTransaction.queryVertices(CachedGraphTransaction.java:93) ~[hugegraph-core-0.8.0.jar:0.8.0.0] at com.baidu.hugegraph.HugeGraph.vertices(HugeGraph.java:337) ~[hugegraph-core-0.8.0.jar:0.8.0.0] at com.baidu.hugegraph.traversal.optimize.HugeGraphStep.vertices(HugeGraphStep.java:94) ~[hugegraph-core-0.8.0.jar:0.8.0.0] at com.baidu.hugegraph.traversal.optimize.HugeGraphStep.lambda$new$0(HugeGraphStep.java:66) ~[hugegraph-core-0.8.0.jar:0.8.0.0] at org.apache.tinkerpop.gremlin.process.traversal.step.map.GraphStep.processNextStart(GraphStep.java:139) ~[gremlin-core-3.2.5.jar:3.2.5] at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:143) ~[gremlin-core-3.2.5.jar:3.2.5] at org.apache.tinkerpop.gremlin.process.traversal.step.util.ExpandableStepIterator.next(ExpandableStepIterator.java:50) ~[gremlin-core-3.2.5.jar:3.2.5] at org.apache.tinkerpop.gremlin.process.traversal.step.filter.FilterStep.processNextStart(FilterStep.java:37) ~[gremlin-core-3.2.5.jar:3.2.5] at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:143) ~[gremlin-core-3.2.5.jar:3.2.5] at org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal.hasNext(DefaultTraversal.java:192) ~[gremlin-core-3.2.5.jar:3.2.5] at org.apache.tinkerpop.gremlin.util.iterator.IteratorUtils.fill(IteratorUtils.java:62) ~[gremlin-core-3.2.5.jar:3.2.5]

Steps to reproduce the problem 复现步骤

  1. {step 1}
  2. {step 2}
  3. {step 3}

Status of loaded data 数据状态

Vertex/Edge summary 数据量

  • loaded vertices amount: {like 10 million}
  • loaded edges amount: {like 20 million}
  • loaded time: {like 200s}

Vertex/Edge example 数据示例

{type something here...}

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

{type something here...}

Specifications of environment 环境信息

  • hugegraph version: {like v0.7.4}
  • operating system: {like centos 7.4, 32 CPUs, 64G RAM}
  • hugegraph backend: {like cassandra 3.10, cluster with 20 nodes, 3 x 1TB HDD disk each node}

fisherinbox avatar Oct 08 '18 09:10 fisherinbox