[
https://issues.apache.org/jira/browse/HIVE-12425?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eugene Koifman resolved HIVE-12425.
-----------------------------------
Resolution: Not A Problem
Fix Version/s: 3.0.0
this is fixed in current master (3.0)
> 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
> Fix For: 3.0.0
>
>
> {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.4.14#64029)