You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Dong Li (JIRA)" <ji...@apache.org> on 2017/11/03 05:54:00 UTC
[jira] [Resolved] (KYLIN-2989) Close of BufferedWriter should be
placed in finally block in SCCreator
[ https://issues.apache.org/jira/browse/KYLIN-2989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dong Li resolved KYLIN-2989.
----------------------------
Resolution: Fixed
Fix Version/s: v2.3.0
> Close of BufferedWriter should be placed in finally block in SCCreator
> ----------------------------------------------------------------------
>
> Key: KYLIN-2989
> URL: https://issues.apache.org/jira/browse/KYLIN-2989
> Project: Kylin
> Issue Type: Bug
> Reporter: Ted Yu
> Assignee: Zhong Yanghong
> Priority: Minor
> Fix For: v2.3.0
>
> Attachments: APACHE-KYLIN-2989.patch
>
>
> Here is related code in SCCreator#saveToFile:
> {code}
> BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(fileName));
> bufferedWriter.append(contents);
> bufferedWriter.close();
> {code}
> The close call should be in finally block.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)