[jira] [Commented] (OAK-7408) LuceneIndexProviderService uses default tracker constructor with disabled CoR
[ https://issues.apache.org/jira/browse/OAK-7408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16487075#comment-16487075 ] Robert Munteanu commented on OAK-7408: -- [~catholicon] - sorry for the delayed response, I lost track of this in my inbox. What we could do is have a {{FailOnlyMountInfoProvider}} that throws exceptions from all methods. Via reflection (still) we could install this as the {{Mounts.DEFAULT_PROVIDER}} field. All would be encapsulated in a Junit rule so it does not leak to other tests. > LuceneIndexProviderService uses default tracker constructor with disabled CoR > - > > Key: OAK-7408 > URL: https://issues.apache.org/jira/browse/OAK-7408 > Project: Jackrabbit Oak > Issue Type: Bug > Components: lucene >Affects Versions: 1.8.2, 1.6.11 >Reporter: Vikas Saurabh >Assignee: Vikas Saurabh >Priority: Major > Fix For: 1.9.0, 1.10 > > > {{LuceneIndexProviderService}} creates default constructor for tracker when > CoR is disabled. This leads to usage of deafult mount provider for querying. > \[0]: > https://github.com/apache/jackrabbit-oak/blob/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndexProviderService.java#L526 -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (OAK-7408) LuceneIndexProviderService uses default tracker constructor with disabled CoR
[ https://issues.apache.org/jira/browse/OAK-7408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16436690#comment-16436690 ] Vikas Saurabh commented on OAK-7408: [~rombert], [~chetanm], I had to resort to reflection to test that reader factory still get correct {{MountInfoProvider}}. I was wondering if default mount could have a utility method to throw unsupported exception if the tests says that default mount info provider must not be constructed Or, any other ideas to have a wider test coverage. > LuceneIndexProviderService uses default tracker constructor with disabled CoR > - > > Key: OAK-7408 > URL: https://issues.apache.org/jira/browse/OAK-7408 > Project: Jackrabbit Oak > Issue Type: Bug > Components: lucene >Affects Versions: 1.8.2, 1.6.11 >Reporter: Vikas Saurabh >Assignee: Vikas Saurabh >Priority: Major > Fix For: 1.9.0, 1.10 > > > {{LuceneIndexProviderService}} creates default constructor for tracker when > CoR is disabled. This leads to usage of deafult mount provider for querying. > \[0]: > https://github.com/apache/jackrabbit-oak/blob/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndexProviderService.java#L526 -- This message was sent by Atlassian JIRA (v7.6.3#76005)