-
Notifications
You must be signed in to change notification settings - Fork 527
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
线程池并行查询报错 #2081
Comments
可以调整一下 Line 87 in d340420
不过不太确定为何要创建那么多异步任务,是什么样的应用场景呢? |
这其实也是我的问题所在,正常来讲我线程池最大并发量为10,创建的任务个数最多的时候也就8个。我代码大体实现如下: |
更新一下,查看后台hugegraph-server.log日志发现如下问题:
使用“g.V().has(’age‘, gte(threshold)).out().path()”好像是为图中每个节点都创建一个异步任务,最终导致查询任务数超出限制。 之后改为g.V().where(values(’age‘), is(gte(threshold))).out().path()正常。这是否是bug? 个人还有下面两个疑问:
|
Due to the lack of activity, the current issue is marked as stale and will be closed after 20 days, any update will remove the stale label |
感谢反馈,看起来是对于left index的处理不够完善,后续需要改进EphemeralJob的schedule。
分别解答:
|
存储后端是什么,我尝试本地复现下这个问题 @jokerCoCo |
Problem Type (问题类型)
other exception / error (其他异常报错)
Before submit
Environment (环境信息)
Your Question (问题描述)
我尝试测试线程池并行查询图数据库,并行查询每个节点的上下游节点,线程池最大并发量为10;当并发量多时会报如下错误:
java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Pending tasks size 10001 has exceeded the max limit 10000
请问下这是需要配置什么参数吗?
Vertex/Edge example (问题点 / 边数据举例)
No response
Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
No response
The text was updated successfully, but these errors were encountered: