You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "SUYEON LEE (JIRA)" <ji...@apache.org> on 2014/09/22 10:50:34 UTC
[jira] [Updated] (HIVE-8176) Close of FSDataOutputStream in
OrcRecordUpdater ctor should be in finally clause
[ https://issues.apache.org/jira/browse/HIVE-8176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
SUYEON LEE updated HIVE-8176:
-----------------------------
Attachment: HIVE-8176.patch
i added finally statement that enclosed strm.close().
> Close of FSDataOutputStream in OrcRecordUpdater ctor should be in finally clause
> --------------------------------------------------------------------------------
>
> Key: HIVE-8176
> URL: https://issues.apache.org/jira/browse/HIVE-8176
> Project: Hive
> Issue Type: Bug
> Reporter: Ted Yu
> Assignee: SUYEON LEE
> Priority: Minor
> Attachments: HIVE-8176.patch
>
>
> {code}
> try {
> FSDataOutputStream strm = fs.create(new Path(path, ACID_FORMAT), false);
> strm.writeInt(ORC_ACID_VERSION);
> strm.close();
> } catch (IOException ioe) {
> {code}
> If strm.writeInt() throws IOE, strm would be left unclosed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)