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

OakIndexInput should unset OakIndexFile's byte[] upon close

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.1
    • 1.0.14, 1.2.2, 1.3.0, 1.4
    • lucene
    • None

    Description

      OakIndexInput, being an extension of Lucene's IndexInput implements Closable, however upon #close the referenced OakIndexFile's byte[] is not unset.
      This can lead to memory leak as when IndexInputs gets closed, e.g. by StoredFieldsReaders such references won't be properly cleared (with probably a higher impact in cases where copyOnRead = true).

      Attachments

        1. OAK-2798.patch
          1 kB
          Tommaso Teofili

        Activity

          People

            teofili Tommaso Teofili
            teofili Tommaso Teofili
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: