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

OakIndexInput should unset OakIndexFile's byte[] upon close

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.1
    • Fix Version/s: 1.0.14, 1.2.2, 1.3.0, 1.4
    • Component/s: lucene
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: