cichengzi commented on issue #3057:
URL: https://github.com/apache/hugegraph/issues/3057#issuecomment-4659527047
Or rather, is there any way for me to disable this check and prevent it from
throwing an InterruptedException to interrupt my query? Currently, the query
uses only one thread. Is it possible to use multiple threads? Actually, when I
adjusted it to four threads, the following exception occurred:
2026-06-09 16:10:19 [main] [ERROR] o.a.h.d.HugeGraphServer - HugeRestServer
start error:
org.apache.hugegraph.HugeException: Failed to update/query TaskStore:
java.util.concurrent.ExecutionException:
org.apache.hugegraph.backend.BackendException: Can't operate a tx in other
threads
at
org.apache.hugegraph.task.StandardTaskScheduler.call(StandardTaskScheduler.java:718)
~[hugegraph-core-1.5.0.jar:1.5.0]
at
org.apache.hugegraph.task.StandardTaskScheduler.queryTask(StandardTaskScheduler.java:663)
~[hugegraph-core-1.5.0.jar:1.5.0]
at
org.apache.hugegraph.task.StandardTaskScheduler.queryTask(StandardTaskScheduler.java:658)
~[hugegraph-core-1.5.0.jar:1.5.0]
at
org.apache.hugegraph.task.StandardTaskScheduler.findTask(StandardTaskScheduler.java:544)
~[hugegraph-core-1.5.0.jar:1.5.0]
at
org.apache.hugegraph.task.StandardTaskScheduler.restoreTasks(StandardTaskScheduler.java:141)
~[hugegraph-core-1.5.0.jar:1.5.0]
at
org.apache.hugegraph.StandardHugeGraph.serverStarted(StandardHugeGraph.java:301)
~[hugegraph-core-1.5.0.jar:1.5.0]
at
org.apache.hugegraph.core.GraphManager.serverStarted(GraphManager.java:484)
~[hugegraph-api-1.5.0.jar:0.71.0.0]
at org.apache.hugegraph.core.GraphManager.init(GraphManager.java:125)
~[hugegraph-api-1.5.0.jar:0.71.0.0]
at
org.apache.hugegraph.server.ApplicationConfig$GraphManagerFactory$1.onEvent(ApplicationConfig.java:143)
~[hugegraph-api-1.5.0.jar:0.71.0.0]
at
org.glassfish.jersey.server.internal.monitoring.CompositeApplicationEventListener.onEvent(CompositeApplicationEventListener.java:49)
~[jersey-server-3.0.3.jar:?]
at
org.glassfish.jersey.server.internal.monitoring.MonitoringContainerListener.onStartup(MonitoringContainerListener.java:56)
~[jersey-server-3.0.3.jar:?]
at
org.glassfish.jersey.server.ApplicationHandler.onStartup(ApplicationHandler.java:711)
~[jersey-server-3.0.3.jar:?]
at
org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.start(GrizzlyHttpContainer.java:330)
~[jersey-container-grizzly2-http-3.0.3.jar:?]
at
org.glassfish.grizzly.http.server.HttpHandlerChain.start(HttpHandlerChain.java:376)
~[grizzly-http-server-3.0.1.jar:3.0.1]
at
org.glassfish.grizzly.http.server.HttpServer.setupHttpHandler(HttpServer.java:268)
~[grizzly-http-server-3.0.1.jar:3.0.1]
at
org.glassfish.grizzly.http.server.HttpServer.start(HttpServer.java:245)
~[grizzly-http-server-3.0.1.jar:3.0.1]
at org.apache.hugegraph.server.RestServer.start(RestServer.java:70)
~[hugegraph-api-1.5.0.jar:0.71.0.0]
at org.apache.hugegraph.server.RestServer.start(RestServer.java:177)
~[hugegraph-api-1.5.0.jar:0.71.0.0]
at
org.apache.hugegraph.dist.HugeRestServer.start(HugeRestServer.java:31)
~[hugegraph-dist-1.5.0.jar:1.5.0]
at
org.apache.hugegraph.dist.HugeGraphServer.<init>(HugeGraphServer.java:61)
~[hugegraph-dist-1.5.0.jar:1.5.0]
at
org.apache.hugegraph.dist.HugeGraphServer.main(HugeGraphServer.java:127)
~[hugegraph-dist-1.5.0.jar:1.5.0]
Caused by: java.util.concurrent.ExecutionException:
org.apache.hugegraph.backend.BackendException: Can't operate a tx in other
threads
at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:?]
at java.util.concurrent.FutureTask.get(FutureTask.java:191) ~[?:?]
at
org.apache.hugegraph.task.StandardTaskScheduler.call(StandardTaskScheduler.java:715)
~[hugegraph-core-1.5.0.jar:1.5.0]
... 20 more
Caused by: org.apache.hugegraph.backend.BackendException: Can't operate a tx
in other threads
at
org.apache.hugegraph.backend.tx.AbstractTransaction.checkOwnerThread(AbstractTransaction.java:358)
~[hugegraph-core-1.5.0.jar:1.5.0]
at
org.apache.hugegraph.backend.tx.GraphTransaction.joinTxRecords(GraphTransaction.java:2059)
~[hugegraph-core-1.5.0.jar:1.5.0]
at
org.apache.hugegraph.backend.tx.GraphTransaction.joinTxVertices(GraphTransaction.java:2017)
~[hugegraph-core-1.5.0.jar:1.5.0]
at
org.apache.hugegraph.backend.tx.GraphTransaction.queryVertices(GraphTransaction.java:855)
~[hugegraph-core-1.5.0.jar:1.5.0]
at
org.apache.hugegraph.task.StandardTaskScheduler.lambda$queryTask$5(StandardTaskScheduler.java:683)
~[hugegraph-core-1.5.0.jar:1.5.0]
at
org.apache.hugegraph.task.TaskManager$ContextCallable.call(TaskManager.java:497)
~[hugegraph-core-1.5.0.jar:1.5.0]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
~[?:?]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
~[?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]