Uploaded image for project: 'Apache Gora'
  1. Apache Gora
  2. GORA-460

InputStream is not closed in DataStoreFactory#getMappingFile()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.7
    • None
    • None

    Description

      Here is related code:

          InputStream mappingFile = store.getClass().getClassLoader().getResourceAsStream(mappingFilename);
      
          if (mappingFile == null)
            throw new IOException("Unable to open mapping file: "+mappingFilename);
      
          return mappingFilename;
      

      mappingFile should be closed before returning.

      Attachments

        Activity

          People

            renato2099 Renato Javier MarroquĂ­n Mogrovejo
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: