You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2016/03/07 04:12:40 UTC
[jira] [Updated] (LENS-953) Unclosed InputStream in
DatabaseUtil#initializeDatabaseStorage()
[ https://issues.apache.org/jira/browse/LENS-953?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ted Yu updated LENS-953:
------------------------
Description:
Here is related code:
{code}
InputStream file = DatabaseUtil.class.getClassLoader().getResourceAsStream("db-storage-schema.sql");
BufferedReader reader = new BufferedReader(new InputStreamReader(file, "UTF-8"));
{code}
Neither file nor reader is closed upon exit from the method.
was:
Here is related code:
{code}
InputStream file = DatabaseUtil.class.getClassLoader().getResourceAsStream("db-storage-schema.sql");
BufferedReader reader = new BufferedReader(new InputStreamReader(file, "UTF-8"));
{code}
Neither file nor reader is closed upon exit from the method.
> Unclosed InputStream in DatabaseUtil#initializeDatabaseStorage()
> ----------------------------------------------------------------
>
> Key: LENS-953
> URL: https://issues.apache.org/jira/browse/LENS-953
> Project: Apache Lens
> Issue Type: Bug
> Components: client
> Reporter: Ted Yu
> Priority: Minor
>
> Here is related code:
> {code}
> InputStream file = DatabaseUtil.class.getClassLoader().getResourceAsStream("db-storage-schema.sql");
> BufferedReader reader = new BufferedReader(new InputStreamReader(file, "UTF-8"));
> {code}
> Neither file nor reader is closed upon exit from the method.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)