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

AnalyzingInfixSuggester should not immediately open an IndexWriter over an already-built index

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Fixed
    • 6.4
    • 6.4.1, 6.5, 7.0
    • None
    • None
    • New

    Description

      In tests I'm working on under SOLR-6246, I can see that attempts to open an AnalyzingInfixSuggester over a previously-built index fail, because the old suggester's IndexWriter lock is never released. The issue is that an IndexWriter is created in order to create a SearcherManager over the previously built index. But this is not necessary: SearcherManager has a ctor that takes a directory instead of an IndexWriter.

      Attachments

        1. LUCENE-7670.patch
          3 kB
          Steven Rowe

        Issue Links

          Activity

            People

              sarowe Steven Rowe
              sarowe Steven Rowe
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: