Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-6660 Improve the usability for the new Suggester
  3. SOLR-6246

Core fails to reload when AnalyzingInfixSuggester is used as a Suggester

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.8, 4.8.1, 4.9, 5.0, 5.1, 5.2, 5.3, 5.4
    • Fix Version/s: 6.4.1, 6.5, 7.0
    • Labels:
      None

      Description

      LUCENE-5477 - added near-real-time suggest building to AnalyzingInfixSuggester. One of the changes that went in was a writer is persisted now to support real time updates via the add() and update() methods.

      When we call Solr's reload command, a new instance of AnalyzingInfixSuggester is created. When trying to create a new writer on the same Directory a lock cannot be obtained and Solr fails to reload the core.

      Also when AnalyzingInfixLookupFactory throws a RuntimeException we should pass along the original message.

      I am not sure what should be the approach to fix it. Should we have a reloadHook where we close the writer?

        Attachments

        1. SOLR-6246-test.patch
          12 kB
          Varun Thacker
        2. SOLR-6246-test.patch
          17 kB
          Varun Thacker
        3. SOLR-6246-test.patch
          2 kB
          Steve Rowe
        4. SOLR-6246-test.patch
          13 kB
          Steve Rowe
        5. SOLR-6246.patch
          11 kB
          Varun Thacker
        6. SOLR-6246.patch
          19 kB
          Steve Rowe

          Issue Links

            Activity

              People

              • Assignee:
                steve_rowe Steve Rowe
                Reporter:
                varunthacker Varun Thacker
              • Votes:
                31 Vote for this issue
                Watchers:
                40 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: