Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      We use other frameworks in the same JVM. Hibernate Search for example. And would like to be able to use the newest Lucene in the same JVM as Jackrabbit.

        Issue Links

          Activity

          Kimmo Björnsson created issue -
          BELUGA BEHR made changes -
          Field Original Value New Value
          Link This issue is related to JCR-3669 [ JCR-3669 ]
          BELUGA BEHR made changes -
          Link This issue is related to JCR-2426 [ JCR-2426 ]
          Hide
          BELUGA BEHR added a comment -
          Show
          BELUGA BEHR added a comment - Lucene is now up to 3.6.2. Please update. http://archive.apache.org/dist/lucene/java/3.6.2/changes-3.6.2/Changes.html
          Marcel Reutegger made changes -
          Summary Upgrade Lucene to 3.4.0 Upgrade Lucene to 3.6.2
          Hide
          Marcel Reutegger added a comment -

          There is a test failure when Lucene is updated from 3.6.0 to 3.6.2:

          -------------------------------------------------------------------------------
          Test set: org.apache.jackrabbit.core.query.TestAll
          -------------------------------------------------------------------------------
          Tests run: 222, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.363 sec <<< FAILURE!
          testDerefInPredicate(org.apache.jackrabbit.core.query.DerefTest)  Time elapsed: 0.035 sec  <<< FAILURE!
          java.lang.AssertionError
          	at org.apache.lucene.search.DisjunctionSumScorer.nextDoc(DisjunctionSumScorer.java:71)
          	at org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:286)
          	at org.apache.jackrabbit.core.query.lucene.PredicateDerefQuery$DerefScorer.calculateChildren(PredicateDerefQuery.java:316)
          	at org.apache.jackrabbit.core.query.lucene.PredicateDerefQuery$DerefScorer.nextDoc(PredicateDerefQuery.java:267)
          	at org.apache.jackrabbit.core.query.lucene.DescendantSelfAxisQuery$DescendantSelfAxisScorer.nextDoc(DescendantSelfAxisQuery.java:478)
          	at org.apache.jackrabbit.core.query.lucene.LuceneQueryHits.nextScoreNode(LuceneQueryHits.java:62)
          	at org.apache.jackrabbit.core.query.lucene.QueryHitsAdapter.nextScoreNodes(QueryHitsAdapter.java:54)
          	at org.apache.jackrabbit.core.query.lucene.FilterMultiColumnQueryHits.nextScoreNodes(FilterMultiColumnQueryHits.java:63)
          	at org.apache.jackrabbit.core.query.lucene.QueryResultImpl.collectScoreNodes(QueryResultImpl.java:353)
          	at org.apache.jackrabbit.core.query.lucene.QueryResultImpl.getResults(QueryResultImpl.java:301)
          	at org.apache.jackrabbit.core.query.lucene.SingleColumnQueryResult.<init>(SingleColumnQueryResult.java:66)
          	at org.apache.jackrabbit.core.query.lucene.QueryImpl.execute(QueryImpl.java:134)
          	at org.apache.jackrabbit.core.query.QueryImpl$1.perform(QueryImpl.java:132)
          	at org.apache.jackrabbit.core.query.QueryImpl$1.perform(QueryImpl.java:129)
          	at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216)
          	at org.apache.jackrabbit.core.query.QueryImpl.execute(QueryImpl.java:128)
          	at org.apache.jackrabbit.core.query.AbstractQueryTest.executeXPathQuery(AbstractQueryTest.java:145)
          	at org.apache.jackrabbit.core.query.DerefTest.testDerefInPredicate(DerefTest.java:141)
          
          Show
          Marcel Reutegger added a comment - There is a test failure when Lucene is updated from 3.6.0 to 3.6.2: ------------------------------------------------------------------------------- Test set: org.apache.jackrabbit.core.query.TestAll ------------------------------------------------------------------------------- Tests run: 222, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.363 sec <<< FAILURE! testDerefInPredicate(org.apache.jackrabbit.core.query.DerefTest) Time elapsed: 0.035 sec <<< FAILURE! java.lang.AssertionError at org.apache.lucene.search.DisjunctionSumScorer.nextDoc(DisjunctionSumScorer.java:71) at org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:286) at org.apache.jackrabbit.core.query.lucene.PredicateDerefQuery$DerefScorer.calculateChildren(PredicateDerefQuery.java:316) at org.apache.jackrabbit.core.query.lucene.PredicateDerefQuery$DerefScorer.nextDoc(PredicateDerefQuery.java:267) at org.apache.jackrabbit.core.query.lucene.DescendantSelfAxisQuery$DescendantSelfAxisScorer.nextDoc(DescendantSelfAxisQuery.java:478) at org.apache.jackrabbit.core.query.lucene.LuceneQueryHits.nextScoreNode(LuceneQueryHits.java:62) at org.apache.jackrabbit.core.query.lucene.QueryHitsAdapter.nextScoreNodes(QueryHitsAdapter.java:54) at org.apache.jackrabbit.core.query.lucene.FilterMultiColumnQueryHits.nextScoreNodes(FilterMultiColumnQueryHits.java:63) at org.apache.jackrabbit.core.query.lucene.QueryResultImpl.collectScoreNodes(QueryResultImpl.java:353) at org.apache.jackrabbit.core.query.lucene.QueryResultImpl.getResults(QueryResultImpl.java:301) at org.apache.jackrabbit.core.query.lucene.SingleColumnQueryResult.<init>(SingleColumnQueryResult.java:66) at org.apache.jackrabbit.core.query.lucene.QueryImpl.execute(QueryImpl.java:134) at org.apache.jackrabbit.core.query.QueryImpl$1.perform(QueryImpl.java:132) at org.apache.jackrabbit.core.query.QueryImpl$1.perform(QueryImpl.java:129) at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216) at org.apache.jackrabbit.core.query.QueryImpl.execute(QueryImpl.java:128) at org.apache.jackrabbit.core.query.AbstractQueryTest.executeXPathQuery(AbstractQueryTest.java:145) at org.apache.jackrabbit.core.query.DerefTest.testDerefInPredicate(DerefTest.java:141)
          Hide
          BELUGA BEHR added a comment -

          At a quick glance, seems to that this assertion check was added in 3.6.2. It does not exist in 3.6.0 or 3.6.1. When this test is ran in 3.6.1, a NPE is generated, so my guess is that the assert was added to protect against that situation. Needs more investigation.

          Show
          BELUGA BEHR added a comment - At a quick glance, seems to that this assertion check was added in 3.6.2. It does not exist in 3.6.0 or 3.6.1. When this test is ran in 3.6.1, a NPE is generated, so my guess is that the assert was added to protect against that situation. Needs more investigation.
          Hide
          Marcel Reutegger added a comment -

          There may also be something wrong with DerefScorer. Jackrabbit integrates quite
          tightly with Lucene and we saw similar issues in the past when we upgraded the
          library.

          Show
          Marcel Reutegger added a comment - There may also be something wrong with DerefScorer. Jackrabbit integrates quite tightly with Lucene and we saw similar issues in the past when we upgraded the library.

            People

            • Assignee:
              Unassigned
              Reporter:
              Kimmo Björnsson
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Development