mrwulf / cumulusrdf

Automatically exported from code.google.com/p/cumulusrdf
0 stars 0 forks source link

SPARQL predicate query gives TimeOutException #82

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Import the attached TTL file.
2. Use the web interface or evaluate in the SPARQL query from Java code.
3. Results in Error 400 (runned in the browser), TimeOutException (in Java code)

What is the expected output? What do you see instead?
:x4 :x5 should be returned.

What version of the product are you using? On what operating system?
CumulusRdf 1.0.1, Cassandra 2.0.8

Please provide any additional information below.

Running queries collecting nodes with the rdf:type predicate runs without 
problem.

Cassandra side exception:
ERROR [ReadStage:259] 2014-06-26 14:15:22,769 CassandraDaemon.java (line 199) 
Exception in thread Thread[ReadStage:259,5,main]
java.lang.AssertionError: Sequential scan with filters is not supported (if you 
just created an index, you need to wait for the creation to be propagated to 
all nodes before querying it)
    at org.apache.cassandra.db.filter.ExtendedFilter$WithClauses.getExtraFilter(ExtendedFilter.java:259)
    at org.apache.cassandra.db.index.keys.KeysSearcher$1.computeNext(KeysSearcher.java:173)
    at org.apache.cassandra.db.index.keys.KeysSearcher$1.computeNext(KeysSearcher.java:84)
    at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
    at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
    at org.apache.cassandra.db.ColumnFamilyStore.filter(ColumnFamilyStore.java:1742)
    at org.apache.cassandra.db.index.keys.KeysSearcher.search(KeysSearcher.java:54)
    at org.apache.cassandra.db.index.SecondaryIndexManager.search(SecondaryIndexManager.java:556)
    at org.apache.cassandra.db.ColumnFamilyStore.search(ColumnFamilyStore.java:1730)
    at org.apache.cassandra.db.RangeSliceCommand.executeLocally(RangeSliceCommand.java:135)
    at org.apache.cassandra.service.StorageProxy$LocalRangeSliceRunnable.runMayThrow(StorageProxy.java:1370)
    at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1912)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

===========================================================================

CumulusRDF run from maven (mvn clean cassandra:stop cassandra:start 
tomcat7:run):
14:23:35,105 ERROR [SPARQLServlet] <CRDF-00026> : Not-well specified system 
internal failure has been detected. See below for further details.
me.prettyprint.hector.api.exceptions.HTimedOutException: TimedOutException()
    at me.prettyprint.cassandra.service.ExceptionsTranslatorImpl.translate(ExceptionsTranslatorImpl.java:42)
    at me.prettyprint.cassandra.service.KeyspaceServiceImpl$19.execute(KeyspaceServiceImpl.java:745)
    at me.prettyprint.cassandra.service.KeyspaceServiceImpl$19.execute(KeyspaceServiceImpl.java:727)
    at me.prettyprint.cassandra.service.Operation.executeAndSetResult(Operation.java:104)
    at me.prettyprint.cassandra.connection.HConnectionManager.operateWithFailover(HConnectionManager.java:253)
    at me.prettyprint.cassandra.service.KeyspaceServiceImpl.operateWithFailover(KeyspaceServiceImpl.java:132)
    at me.prettyprint.cassandra.service.KeyspaceServiceImpl.getIndexedSlices(KeyspaceServiceImpl.java:749)
    at me.prettyprint.cassandra.model.IndexedSlicesQuery$1.doInKeyspace(IndexedSlicesQuery.java:148)
    at me.prettyprint.cassandra.model.IndexedSlicesQuery$1.doInKeyspace(IndexedSlicesQuery.java:139)
    at me.prettyprint.cassandra.model.KeyspaceOperationCallback.doInKeyspaceAndMeasure(KeyspaceOperationCallback.java:20)
    at me.prettyprint.cassandra.model.ExecutingKeyspace.doExecute(ExecutingKeyspace.java:101)
    at me.prettyprint.cassandra.model.IndexedSlicesQuery.execute(IndexedSlicesQuery.java:138)
    at me.prettyprint.cassandra.service.IndexedSlicesIterator.hasNext(IndexedSlicesIterator.java:33)
    at edu.kit.aifb.cumulus.store.POSSlicesQueryIterator.computeNext(POSSlicesQueryIterator.java:58)
    at edu.kit.aifb.cumulus.store.POSSlicesQueryIterator.computeNext(POSSlicesQueryIterator.java:27)
    at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
    at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
    at edu.kit.aifb.cumulus.store.sesame.CumulusRDFIterator.getNextElement(CumulusRDFIterator.java:21)
    at edu.kit.aifb.cumulus.store.sesame.CumulusRDFIterator.getNextElement(CumulusRDFIterator.java:9)
    at info.aduna.iteration.LookAheadIteration.lookAhead(LookAheadIteration.java:91)
    at info.aduna.iteration.LookAheadIteration.hasNext(LookAheadIteration.java:60)
    at info.aduna.iteration.IterationWrapper.hasNext(IterationWrapper.java:68)
    at info.aduna.iteration.FilterIteration.findNextElement(FilterIteration.java:79)
    at info.aduna.iteration.FilterIteration.hasNext(FilterIteration.java:54)
    at info.aduna.iteration.ConvertingIteration.hasNext(ConvertingIteration.java:73)
    at info.aduna.iteration.ConvertingIteration.hasNext(ConvertingIteration.java:73)
    at info.aduna.iteration.IterationWrapper.hasNext(IterationWrapper.java:68)
    at org.openrdf.sail.helpers.SailBaseIteration.hasNext(SailBaseIteration.java:61)
    at info.aduna.iteration.IterationWrapper.hasNext(IterationWrapper.java:68)
    at edu.kit.aifb.cumulus.webapp.SPARQLServlet.service(SPARQLServlet.java:107)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: TimedOutException()
    at org.apache.cassandra.thrift.Cassandra$get_indexed_slices_result.read(Cassandra.java:15427)
    at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
    at org.apache.cassandra.thrift.Cassandra$Client.recv_get_indexed_slices(Cassandra.java:804)
    at org.apache.cassandra.thrift.Cassandra$Client.get_indexed_slices(Cassandra.java:788)
    at me.prettyprint.cassandra.service.KeyspaceServiceImpl$19.execute(KeyspaceServiceImpl.java:733)
    ... 45 more

Original issue reported on code.google.com by steind...@gmail.com on 26 Jun 2014 at 3:23

Attachments:

GoogleCodeExporter commented 8 years ago
Hi, 
CumulusRDF 1.0.1 doesn't support Cassandra 2.x. It will do in 1.1.x. I will ask 
more information to who is more expert than me about this topic but I guess 
this is part of the issue

Best, 
AG

Original comment by a.gazzarini@gmail.com on 26 Jun 2014 at 4:19

GoogleCodeExporter commented 8 years ago
Yes, thank you, this was the problem. After reverting to Cassandra 1.2.16 it 
works.

Thank you again,
Daniel

Original comment by steind...@gmail.com on 27 Jun 2014 at 2:00

GoogleCodeExporter commented 8 years ago
You're welcome, so I'm going to close the issue. 

Many thanks
Andrea

Original comment by a.gazzarini@gmail.com on 28 Jun 2014 at 9:40