Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-11500

InputStream is left unclosed in ApplicationClassLoader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6.0
    • 2.7.0
    • None
    • None
    • Reviewed

    Description

          InputStream is = null;
          try {
            is = ApplicationClassLoader.class.getClassLoader().
                getResourceAsStream(PROPERTIES_FILE);
      

      The InputStream is not closed in the static block.

      Attachments

        1. hadoop-11500-002.patch
          0.9 kB
          Ted Yu
        2. hadoop-11500-001.patch
          0.9 kB
          Ted Yu

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: