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

Suggest directory update doesn't close AnalyzingInfixSuggester after building

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.0
    • Fix Version/s: 1.10.0, 1.9.6, 1.8.6, 1.4.24, 1.6.16
    • Component/s: lucene
    • Labels:
      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 Marcel Reutegger

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: