You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@rya.apache.org by "Kevin Chilton (JIRA)" <ji...@apache.org> on 2018/01/05 18:47:00 UTC

[jira] [Assigned] (RYA-170) More descriptive exception messages when PCJ is invalid.

     [ https://issues.apache.org/jira/browse/RYA-170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Chilton reassigned RYA-170:
---------------------------------

    Assignee:     (was: Kevin Chilton)

> More descriptive exception messages when PCJ is invalid.
> --------------------------------------------------------
>
>                 Key: RYA-170
>                 URL: https://issues.apache.org/jira/browse/RYA-170
>             Project: Rya
>          Issue Type: Improvement
>            Reporter: Kevin Chilton
>
> When the PCJOptimizer decides a PCJ is not valid, it prints a generic message that does not explain why the PCJ is invalid. It would help developers debug their queries if the message indicated why the PCJ was invalid.
> Example of generic message:
> {code}
> Exception in thread "main" org.openrdf.query.QueryEvaluationException: java.lang.IllegalArgumentException: TupleExpr is an invalid PCJ.
> 	at org.openrdf.repository.sail.SailTupleQuery.evaluate(SailTupleQuery.java:67)
> 	at org.openrdf.repository.sail.SailTupleQuery.evaluate(SailTupleQuery.java:75)
> 	at RyaDirectExample.testAddAndDelete(RyaDirectExample.java:200)
> 	at RyaDirectExample.main(RyaDirectExample.java:102)
> Caused by: org.openrdf.sail.SailException: java.lang.IllegalArgumentException: TupleExpr is an invalid PCJ.
> 	at mvm.rya.rdftriplestore.RdfCloudTripleStoreConnection.evaluateInternal(RdfCloudTripleStoreConnection.java:418)
> 	at org.openrdf.sail.helpers.SailConnectionBase.evaluate(SailConnectionBase.java:295)
> 	at org.openrdf.repository.sail.SailTupleQuery.evaluate(SailTupleQuery.java:60)
> 	... 3 more
> Caused by: java.lang.IllegalArgumentException: TupleExpr is an invalid PCJ.
> 	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:122)
> 	at mvm.rya.indexing.external.tupleSet.AccumuloIndexSet.<init>(AccumuloIndexSet.java:156)
> 	at mvm.rya.indexing.pcj.matching.PCJOptimizer.getAccIndices(PCJOptimizer.java:359)
> 	at mvm.rya.indexing.pcj.matching.PCJOptimizer.setConf(PCJOptimizer.java:123)
> 	at mvm.rya.rdftriplestore.RdfCloudTripleStoreConnection.evaluateInternal(RdfCloudTripleStoreConnection.java:291)
> 	... 5 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)