You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Eugene Koifman (JIRA)" <ji...@apache.org> on 2015/12/08 21:55:11 UTC
[jira] [Updated] (HIVE-12425) OrcRecordUpdater.close(true) leaves
the file open
[ https://issues.apache.org/jira/browse/HIVE-12425?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eugene Koifman updated HIVE-12425:
----------------------------------
Priority: Critical (was: Major)
> OrcRecordUpdater.close(true) leaves the file open
> -------------------------------------------------
>
> Key: HIVE-12425
> URL: https://issues.apache.org/jira/browse/HIVE-12425
> Project: Hive
> Issue Type: Bug
> Components: ORC, Transactions
> Affects Versions: 1.0.0
> Reporter: Eugene Koifman
> Assignee: Eugene Koifman
> Priority: Critical
>
> {noformat}
> public void close(boolean abort) throws IOException {
> if (abort) {
> if (flushLengths == null) {
> fs.delete(path, false);
> }
> } else {
> if (writer != null) writer.close();
> }
> if (flushLengths != null) {
> flushLengths.close();
> fs.delete(getSideFile(path), false);
> }
> writer = null;
> }
> {noformat}
> While the assumption is that the last txn writing to this file to commit would have called flush(), this still leaves the file open.
> cc [~owen.omalley]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)