Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-2912

File descriptor leak in ShowFileRequestHandler.getFileContents()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.6, 4.0-ALPHA
    • Component/s: Admin UI
    • Labels:
      None

      Description

      There is a file descriptor leak in ShowFileRequestHandler.getFileContents() - the InputStream is not closed. This could cause a "Too many open files" error if the admin page is loaded a lot.

      I've only tested this on 3.2, but I think it affects all recent versions, including trunk.

        Attachments

        1. SOLR-2912.patch
          0.8 kB
          Shalin Shekhar Mangar

          Activity

            People

            • Assignee:
              shalinmangar Shalin Shekhar Mangar
              Reporter:
              michaelryan Michael Ryan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: