You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2017/01/20 21:01:26 UTC

[jira] [Updated] (KYLIN-2391) Unclosed FileInputStream in KylinConfig#getConfigAsString()

     [ https://issues.apache.org/jira/browse/KYLIN-2391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Yu updated KYLIN-2391:
--------------------------
    Description: 
{code}
        OrderedProperties orderedProperties = new OrderedProperties();
        orderedProperties.load(new FileInputStream(propertiesFile));
{code}

The stream created by FileInputStream should be closed upon return.

  was:
{code}
        OrderedProperties orderedProperties = new OrderedProperties();
        orderedProperties.load(new FileInputStream(propertiesFile));
{code}
The stream created by FileInputStream should be closed upon return.


> Unclosed FileInputStream in KylinConfig#getConfigAsString()
> -----------------------------------------------------------
>
>                 Key: KYLIN-2391
>                 URL: https://issues.apache.org/jira/browse/KYLIN-2391
>             Project: Kylin
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Minor
>
> {code}
>         OrderedProperties orderedProperties = new OrderedProperties();
>         orderedProperties.load(new FileInputStream(propertiesFile));
> {code}
> The stream created by FileInputStream should be closed upon return.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)