hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eugene Koifman (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-12425) OrcRecordUpdater.close(true) leaves the file open
Date Mon, 16 Nov 2015 22:00:12 GMT
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)

Mime
View raw message