[ 
https://issues.apache.org/jira/browse/OAK-2282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14220646#comment-14220646
 ] 

Chetan Mehrotra commented on OAK-2282:
--------------------------------------

Current status as of http://svn.apache.org/r1640872 and enabling the JCR 
QueryTest suite to run against current oak-lucene trunk

bq. Tests run: 338, Failures: 12, Errors: 15, Skipped: 0

Here the aggregate test still run with old index implementation. Need to see 
which of these test scenarios cannot be supported by new index and what is due 
to bug in current logic

{noformat}
Failed tests:   
testParentInAttribute1(org.apache.jackrabbit.core.query.ParentNodeTest): Wrong 
size of NodeIterator in result
  testParentInAttribute2(org.apache.jackrabbit.core.query.ParentNodeTest): 
Wrong size of NodeIterator in result
  testParentInAttribute3(org.apache.jackrabbit.core.query.ParentNodeTest): 
Wrong size of NodeIterator in result
  testParentInAttribute4(org.apache.jackrabbit.core.query.ParentNodeTest): 
Wrong size of NodeIterator in result
  
testParentAttributeWithDescendant(org.apache.jackrabbit.core.query.ParentNodeTest):
 Wrong size of NodeIterator in result
  testWithSpace(org.apache.jackrabbit.core.query.FnNameQueryTest): /testroot/My 
Documents is not part of the result set []
  testSimple(org.apache.jackrabbit.core.query.FnNameQueryTest): /testroot/node1 
is not part of the result set []
  testLikeWithWildcard(org.apache.jackrabbit.core.query.FnNameQueryTest): 
/testroot/Foo is not part of the result set []
  
testLikeWithWildcardAndLowerCase(org.apache.jackrabbit.core.query.FnNameQueryTest):
 /testroot/Foo is not part of the result set []
  testCheckin(org.apache.jackrabbit.core.query.VersionStoreQueryTest): 
/testroot/node1 is not part of the result set []
  testNtFile(org.apache.jackrabbit.oak.jcr.query.TextExtractionQueryTest): 
/testroot/node1 is not part of the result set []
  
testFulltextRelativeProperty(org.apache.jackrabbit.oak.jcr.query.QueryFulltextTest):
 expected:<[/testroot]> but was:<[]>

Tests in error: 
  testBuiltInMixin(org.apache.jackrabbit.core.query.MixinTest): No plan found 
for filter [Filter(query=select [jcr:path], [jcr:score], * from [mix:mimeType] 
as a where isdescendantnode(a, '/testroot') /* xpath: testroot//element(*, 
mix:mimeType) */, path=/testroot//*)] while using definition [IndexDefinition : 
/oak:index/luceneGlobal] and testMode is found to be enabled
  testOuterJoin(org.apache.jackrabbit.core.query.SQL2OuterJoinTest): No plan 
found for filter [Filter(query= Select * from [test:SamplePage] as page left 
outer join [test:SampleContent] as content on ISDESCENDANTNODE(content,page), 
path=*)] while using definition [IndexDefinition : /oak:index/luceneGlobal] and 
testMode is found to be enabled
  testOuterJoinMissingNode(org.apache.jackrabbit.core.query.SQL2OuterJoinTest): 
No plan found for filter [Filter(query= Select * from [test:SamplePage] as page 
left outer join [test:SampleContent] as content on 
ISDESCENDANTNODE(content,page), path=*)] while using definition 
[IndexDefinition : /oak:index/luceneGlobal] and testMode is found to be enabled
  testOuterJoinExtraNode(org.apache.jackrabbit.core.query.SQL2OuterJoinTest): 
No plan found for filter [Filter(query= Select * from [test:SamplePage] as page 
left outer join [test:SampleContent] as content on 
ISDESCENDANTNODE(content,page), path=*)] while using definition 
[IndexDefinition : /oak:index/luceneGlobal] and testMode is found to be enabled
  testOrderByScore(org.apache.jackrabbit.core.query.OrderByTest): No plan found 
for filter [Filter(query=SELECT value FROM nt:unstructured WHERE jcr:path LIKE 
'/testroot/%' ORDER BY jcr:score, value, path=*)] while using definition 
[IndexDefinition : /oak:index/luceneGlobal] and testMode is found to be enabled
  testOrderByMVP(org.apache.jackrabbit.core.query.OrderByTest): No plan found 
for filter [Filter(query=SELECT value FROM nt:unstructured WHERE jcr:path LIKE 
'/testroot/%' ORDER BY text, path=*)] while using definition [IndexDefinition : 
/oak:index/luceneGlobal] and testMode is found to be enabled
  testJoinWithOR3(org.apache.jackrabbit.core.query.JoinTest): No plan found for 
filter [Filter(query=SELECT a.* FROM [nt:unstructured] AS a  INNER JOIN 
[nt:unstructured] AS b ON ISCHILDNODE(b, a)   WHERE    ( CONTAINS(b.*, 'abc' ) 
OR CONTAINS(a.*, 'abc') )    AND   NAME(b) = 'p2n2' , path=*)] while using 
definition [IndexDefinition : /oak:index/luceneGlobal] and testMode is found to 
be enabled
  testMultiValuedReferenceJoin(org.apache.jackrabbit.core.query.JoinTest): No 
plan found for filter [Filter(query=SELECT a.*, b.* FROM [nt:unstructured] AS a 
INNER JOIN [nt:unstructured] AS b ON a.[jcr:uuid] = b.testref, path=*)] while 
using definition [IndexDefinition : /oak:index/luceneGlobal] and testMode is 
found to be enabled
  testJoinWithOR(org.apache.jackrabbit.core.query.JoinTest): No plan found for 
filter [Filter(query=SELECT a.*, b.* FROM [nt:unstructured] AS a INNER JOIN 
[nt:unstructured] AS b ON a.[jcr:uuid] = b.testref WHERE a.[jcr:primaryType] IS 
NOT NULL OR b.[jcr:primaryType] IS NOT NULL, path=*)] while using definition 
[IndexDefinition : /oak:index/luceneGlobal] and testMode is found to be enabled
  testJoinWithOR2(org.apache.jackrabbit.core.query.JoinTest): No plan found for 
filter [Filter(query=SELECT a.* FROM [nt:unstructured] AS a  INNER JOIN 
[nt:unstructured] AS b ON ISCHILDNODE(b, a)   WHERE    a.[p] = 'abc' OR b.[p] = 
'abc'  , path=*)] while using definition [IndexDefinition : 
/oak:index/luceneGlobal] and testMode is found to be enabled
  testSQL2SelectColums(org.apache.jackrabbit.core.query.SQL2QueryResultTest): 
No plan found for filter [Filter(query=select * from [test:RTypeTest], path=*)] 
while using definition [IndexDefinition : /oak:index/luceneGlobal] and testMode 
is found to be enabled
  testSimpleQuerySQL4(org.apache.jackrabbit.core.query.SimpleQueryTest): No 
plan found for filter [Filter(query=SELECT * FROM nt:unstructured WHERE 
jcr:path LIKE '/testroot/%', path=*)] while using definition [IndexDefinition : 
/oak:index/luceneGlobal] and testMode is found to be enabled
  testIsNull(org.apache.jackrabbit.core.query.SimpleQueryTest): No plan found 
for filter [Filter(query=SELECT * FROM nt:unstructured WHERE mytext is null and 
jcr:path LIKE '/testroot/%', path=*)] while using definition [IndexDefinition : 
/oak:index/luceneGlobal] and testMode is found to be enabled
  testLogicalExpression(org.apache.jackrabbit.core.query.SimpleQueryTest): No 
plan found for filter [Filter(query=SELECT * FROM nt:unstructured WHERE a=1 and 
b=2 or c=3, path=*)] while using definition [IndexDefinition : 
/oak:index/luceneGlobal] and testMode is found to be enabled
  sql2(org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexQueryTest): 
Results in target/sql2.txt don't match expected results in 
src/test/resources/sql2.txt; compare the files for details

Tests run: 338, Failures: 12, Errors: 15, Skipped: 0

{noformat}

> Make current testcases pass with new index implementation
> ---------------------------------------------------------
>
>                 Key: OAK-2282
>                 URL: https://issues.apache.org/jira/browse/OAK-2282
>             Project: Jackrabbit Oak
>          Issue Type: Sub-task
>          Components: oak-lucene
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>             Fix For: 1.2
>
>
> Current testcases in oak-lucene should be run against the newer index and all 
> such testcases should pass



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to