Lucene - Core
  1. Lucene - Core
  2. LUCENE-3520

If the NRT reader hasn't changed then IndexReader.openIfChanged should return null

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5, 4.0-ALPHA
    • Component/s: core/index
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      I hit a failure in TestSearcherManager (NOTE: doesn't always fail):

        ant test -Dtestcase=TestSearcherManager -Dtestmethod=testSearcherManager -Dtests.seed=459ac99a4256789c:-29b8a7f52497c3b4:145ae632ae9e1ecf
      

      It was tripping the assert inside SearcherLifetimeManager.record,
      because two different IndexSearcher instances had different IR
      instances sharing the same version. This was happening because
      IW.getReader always returns a new reader even when there are no
      changes. I think we should fix that...

      Separately I found a deadlock in
      TestSearcherManager.testIntermediateClose, if the test gets
      SerialMergeScheduler and needs to merge during the second commit.

      1. LUCENE-3520.patch
        20 kB
        Michael McCandless
      2. LUCENE-3520.patch
        11 kB
        Michael McCandless

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Michael McCandless
            Reporter:
            Michael McCandless
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development