Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-7630

Suggest directory update doesn't close AnalyzingInfixSuggester after building

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.0
    • 1.10.0, 1.9.6, 1.8.6, 1.4.24, 1.6.16
    • lucene
    • None

    Description

      SuggestHelper#updateSuggester updates suggester by doing a build() on a newly created instance of AnalyzingInfixSuggester. But it never closes the suggester instance, which, in turn, leads to un-closed reader. With FS based directory (when copy-on-write is enabled), this leads to leaking file handles. FSDirectory does get closed on GC though.

      The issue was reported by mreutegg

      Attachments

        Activity

          People

            catholicon Vikas Saurabh
            catholicon Vikas Saurabh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: