[
https://issues.apache.org/jira/browse/LENS-953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15192433#comment-15192433
]
Hadoop QA commented on LENS-953:
--------------------------------
Applied patch:
[LENS-953.patch|https://issues.apache.org/jira/secure/attachment/12793204/LENS-953.patch]
and ran command: mvn clean install -fae. Result: Success. Build Job:
https://builds.apache.org/job/PreCommit-Lens-Build/326/
> 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
> Assignee: Ajay Yadava
> Priority: Minor
> Attachments: LENS-953.patch
>
>
> 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)