You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gora.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2016/01/13 18:44:39 UTC
[jira] [Created] (GORA-460) InputStream is not closed in
DataStoreFactory#getMappingFile()
Ted Yu created GORA-460:
---------------------------
Summary: InputStream is not closed in DataStoreFactory#getMappingFile()
Key: GORA-460
URL: https://issues.apache.org/jira/browse/GORA-460
Project: Apache Gora
Issue Type: Bug
Reporter: Ted Yu
Priority: Minor
Here is related code:
{code}
InputStream mappingFile = store.getClass().getClassLoader().getResourceAsStream(mappingFilename);
if (mappingFile == null)
throw new IOException("Unable to open mapping file: "+mappingFilename);
return mappingFilename;
{code}
mappingFile should be closed before returning.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)