Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-3520

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

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.5, 4.0-ALPHA
    • core/index
    • None
    • 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.

      Attachments

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

        Activity

          People

            mikemccand Michael McCandless
            mikemccand Michael McCandless
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: