You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Eugene Koifman (JIRA)" <ji...@apache.org> on 2015/11/16 23:00:12 UTC

[jira] [Created] (HIVE-12425) OrcRecordUpdater.close(true) leaves the file open

Eugene Koifman created HIVE-12425:
-------------------------------------

             Summary: 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


{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)