Wmsdoc opened a new issue, #2827:
URL: https://github.com/apache/incubator-hugegraph/issues/2827

   ### Problem Type (问题类型)
   
   rest-api (结果不合预期)
   
   ### Before submit
   
   - [x] 我已经确认现有的 [Issues](https://github.com/apache/hugegraph/issues) 与 
[FAQ](https://hugegraph.apache.org/docs/guides/faq/) 中没有相同 / 重复问题 (I have 
confirmed and searched that there are no similar problems in the historical 
issue and documents)
   
   ### Environment (环境信息)
   
   - Server Version: 1.5.0 (Apache Release Version)
   - Backend: Hstore 3 nodes
   - Data Size:  1 vertices, 30w edges
   
   
   ### Your Question (问题描述)
   
   场景:
   写入了一批带有脏数据的数据,但只涉及到个别的几个顶点,所以想要直接删除这几个错误顶点
   在 master 节点调用
   
https://hugegraph.apache.org/docs/clients/restful-api/vertex/#215-delete-vertex-properties
   调用文档中的Delete API 
   
   响应如下错误
   ```
   /graphs/hugegraph/graph/vertices/"2:@I"?label=people
   
   {
       "exception": "class org.apache.hugegraph.exception.LimitExceedException",
       "message": "Too many records(must <= 800000) for the query: `Query * 
from EDGE where id prefix with 0x83323a404982`",
       "cause": ""
   }
   ```
   
   同时也参考了这个 issue 执行了一下异步任务,但是是相同的报错
   https://github.com/apache/incubator-hugegraph/issues/1298
   ```
   t = g.V().hasLabel('people').has('id', '@I')
        while(t.hasNext()){
        t.next().remove()
        graph.tx().commitIfGtSize(500)
   }
   
   Response body
   {
     "task_name": "t = g.V().hasLabel('people').has('id', '@I')",
     "task_progress": 0,
     "task_create": 1751937784229,
     "task_status": "failed",
     "task_update": 1751938101099,
     "task_result": "org.apache.hugegraph.exception.LimitExceedException: Too 
many records(must <= 800000) for the query: `Query * from EDGE where id prefix 
with 0x83323a404982`",
     "task_retries": 0,
     "id": 60001,
     "task_type": "gremlin",
     "task_callable": "org.apache.hugegraph.job.GremlinJob",
     "task_input": "{\"gremlin\":\"t = g.V().hasLabel('people').has('id', 
'@I')\\nwhile(t.hasNext()){\\n  t.next().remove()\\n  
graph.tx().commitIfGtSize(500)\\n}\",\"aliases\":{\"hugegraph\":\"graph\"},\"bindings\":{},\"language\":\"gremlin-groovy\"}"
   }
   ```
   
   
   ### Vertex/Edge example (问题点 / 边数据举例)
   
   ```javascript
   
   ```
   
   ### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
   
   ```javascript
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@hugegraph.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to