Cannot Stop timed out query in Stardog Studio (1.0.0beta)


(Pierre Grenon) #1

Hi,

A query that has timed out still appears as being processed by Stardog Studio and cannot be stopped.

The little cute green wheel is spinning,… Hitting ‘Stop’ brings up a confirmation pop up. Clicking ‘yes’ brings up a red “Failure to kill query!”.

Many thanks and best regards,
Pierre

Server logs:

ERROR 2018-08-29 13:17:34,442 [stardog-user-13] com.complexible.stardog.protocols.http.server.StardogHttpServiceLoader:accept(229): An unexpected exception was handled by the server
org.openrdf.query.QueryEvaluationException: Query execution cancelled: Execution time exceeded query timeout 300000
at com.complexible.common.rdf.query.IteratorAsGraphQueryResult.hasNext(IteratorAsGraphQueryResult.java:96) ~[stardog-utils-rdf-5.3.1.jar:?]
at org.openrdf.query.QueryResults.report(QueryResults.java:196) ~[sesame-query-4.1.2.jar:?]
at com.complexible.stardog.protocols.http.server.ProtocolUtils.executeReadQuery(ProtocolUtils.java:539) ~[stardog-protocols-http-server-5.3.1.jar:?]
at com.complexible.stardog.protocols.http.server.ProtocolUtils.executeReadQuery(ProtocolUtils.java:473) ~[stardog-protocols-http-server-5.3.1.jar:?]
at com.complexible.stardog.protocols.http.server.SPARQLProtocol.executeQuery(SPARQLProtocol.java:147) ~[stardog-protocols-http-server-5.3.1.jar:?]
at com.complexible.stardog.protocols.http.server.SPARQLProtocol.post(SPARQLProtocol.java:111) ~[stardog-protocols-http-server-5.3.1.jar:?]
at com.stardog.http.server.undertow.jaxrs.ExtractRoutes.lambda$handleIt$5(ExtractRoutes.java:192) ~[stardog-protocols-http-server-5.3.1.jar:?]
at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) [shiro-core-1.3.0.jar:1.3.0]
at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) [shiro-core-1.3.0.jar:1.3.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_171]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_171]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_171]
Caused by: com.complexible.stardog.plan.eval.operator.OperatorException: Query execution cancelled: Execution time exceeded query timeout 300000
at com.complexible.stardog.plan.eval.operator.impl.AbstractOperator.checkCanceled(AbstractOperator.java:139) ~[stardog-5.3.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.IndexScan.computeNext(IndexScan.java:362) ~[stardog-5.3.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.IndexScan.computeNext(IndexScan.java:40) ~[stardog-5.3.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.tryToComputeNext(AbstractSkippingIterator.java:143) ~[stardog-utils-common-5.3.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.hasNext(AbstractSkippingIterator.java:130) ~[stardog-utils-common-5.3.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.SimpleEquiJoinKeyIterator.hasNext(SimpleEquiJoinKeyIterator.java:93) ~[stardog-5.3.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.CrossProductIterator$LeftEquiJoinKeyIterator.hasNext(CrossProductIterator.java:187) ~[stardog-5.3.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.CrossProductIterator$InnerJoinCrossProductIterator.moveLeft(CrossProductIterator.java:283) ~[stardog-5.3.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.CrossProductIterator$InnerJoinCrossProductIterator.hasNext(CrossProductIterator.java:257) ~[stardog-5.3.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.MergeJoinOp._nextCross(MergeJoinOp.java:175) ~[stardog-5.3.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.MergeJoinOp.computeNext(MergeJoinOp.java:249) ~[stardog-5.3.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.MergeJoinOp.computeNext(MergeJoinOp.java:29) ~[stardog-5.3.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.tryToComputeNext(AbstractSkippingIterator.java:143) ~[stardog-utils-common-5.3.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.hasNext(AbstractSkippingIterator.java:130) ~[stardog-utils-common-5.3.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.FilterOp.computeNext(FilterOp.java:83) ~[stardog-5.3.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.FilterOp.computeNext(FilterOp.java:28) ~[stardog-5.3.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.tryToComputeNext(AbstractSkippingIterator.java:143) ~[stardog-utils-common-5.3.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.hasNext(AbstractSkippingIterator.java:130) ~[stardog-utils-common-5.3.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.BindOp.computeNext(BindOp.java:154) ~[stardog-5.3.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.BindOp.computeNext(BindOp.java:37) ~[stardog-5.3.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.tryToComputeNext(AbstractSkippingIterator.java:143) ~[stardog-utils-common-5.3.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.hasNext(AbstractSkippingIterator.java:130) ~[stardog-utils-common-5.3.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.SingleProjectionOp.computeNext(SingleProjectionOp.java:82) ~[stardog-5.3.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.SingleProjectionOp.computeNext(SingleProjectionOp.java:29) ~[stardog-5.3.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.tryToComputeNext(AbstractSkippingIterator.java:143) ~[stardog-utils-common-5.3.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.hasNext(AbstractSkippingIterator.java:130) ~[stardog-utils-common-5.3.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.LazySortedGroupify$1.computeNext(GroupifyAlgorithms.java:384) ~[stardog-5.3.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.LazySortedGroupify$1.computeNext(GroupifyAlgorithms.java:375) ~[stardog-5.3.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.tryToComputeNext(AbstractSkippingIterator.java:143) ~[stardog-utils-common-5.3.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.hasNext(AbstractSkippingIterator.java:130) ~[stardog-utils-common-5.3.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.AbstractGroupOp.computeNext(AbstractGroupOp.java:132) ~[stardog-5.3.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.AbstractGroupOp.computeNext(AbstractGroupOp.java:31) ~[stardog-5.3.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.tryToComputeNext(AbstractSkippingIterator.java:143) ~[stardog-utils-common-5.3.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.hasNext(AbstractSkippingIterator.java:130) ~[stardog-utils-common-5.3.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.DistinctOp.computeNext(DistinctOp.java:53) ~[stardog-5.3.1.jar:?]
at com.complexible.stardog.plan.eval.operator.impl.DistinctOp.computeNext(DistinctOp.java:21) ~[stardog-5.3.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.tryToComputeNext(AbstractSkippingIterator.java:143) ~[stardog-utils-common-5.3.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.hasNext(AbstractSkippingIterator.java:130) ~[stardog-utils-common-5.3.1.jar:?]
at com.complexible.stardog.plan.eval.operator.util.AutoCloseOperator.computeNext(AutoCloseOperator.java:112) ~[stardog-5.3.1.jar:?]
at com.complexible.stardog.plan.eval.operator.util.AutoCloseOperator.computeNext(AutoCloseOperator.java:25) ~[stardog-5.3.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.tryToComputeNext(AbstractSkippingIterator.java:143) ~[stardog-utils-common-5.3.1.jar:?]
at com.complexible.common.collect.AbstractSkippingIterator.hasNext(AbstractSkippingIterator.java:130) ~[stardog-utils-common-5.3.1.jar:?]
at com.complexible.stardog.plan.eval.operator.util.OpBasedAbstractStatementIteration.computeNext(OpBasedAbstractStatementIteration.java:77) ~[stardog-5.3.1.jar:?]
at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) ~[guava-18.0.jar:?]
at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) ~[guava-18.0.jar:?]
at com.complexible.common.rdf.query.IteratorAsGraphQueryResult.hasNext(IteratorAsGraphQueryResult.java:93) ~[stardog-utils-rdf-5.3.1.jar:?]
… 11 more
ERROR 2018-08-29 13:26:12,558 [stardog-user-6] com.complexible.stardog.protocols.http.server.StardogHttpServiceLoader:accept(229): An unexpected exception was handled by the server
com.complexible.stardog.server.QueryNotFoundException: Query not found: 12873
at com.complexible.stardog.KernelQueryManager.getMonitor(KernelQueryManager.java:229) ~[stardog-5.3.1.jar:?]
at com.complexible.stardog.KernelQueryManager.getQuery(KernelQueryManager.java:204) ~[stardog-5.3.1.jar:?]
at com.complexible.stardog.StardogKernel.getQuery(StardogKernel.java:4001) ~[stardog-5.3.1.jar:?]
at com.complexible.stardog.StardogKernel.killQuery(StardogKernel.java:4017) ~[stardog-5.3.1.jar:?]
at com.complexible.stardog.protocols.http.server.QueryService.killQuery(QueryService.java:94) ~[stardog-protocols-http-server-5.3.1.jar:?]
at com.stardog.http.server.undertow.jaxrs.ExtractRoutes.lambda$handleIt$5(ExtractRoutes.java:192) ~[stardog-protocols-http-server-5.3.1.jar:?]
at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) [shiro-core-1.3.0.jar:1.3.0]
at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) [shiro-core-1.3.0.jar:1.3.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_171]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_171]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_171]


(Pierre Grenon) #2

Also, these tabs can’t be closed properly – only way to get rid of them seems to be to restart Studio.