orc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dongjoon Hyun (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ORC-419) Ensure to call `close` at RecordReaderImpl constructor exception
Date Thu, 11 Oct 2018 05:55:00 GMT
Dongjoon Hyun created ORC-419:
---------------------------------

             Summary: Ensure to call `close` at RecordReaderImpl constructor exception
                 Key: ORC-419
                 URL: https://issues.apache.org/jira/browse/ORC-419
             Project: ORC
          Issue Type: Bug
          Components: Java
    Affects Versions: 1.5.3, 1.5.2, 1.5.1, 1.5.0
            Reporter: Dongjoon Hyun


Currently, there is no way to call `RecordReaderImpl.close` if `RecordReader.rows` fails at
creating `RecordReaderImpl`. This issue aims to try to invoke `close` in the constructor in
case of Exceptions.

{code}
  @Override
  public RecordReader rows(Options options) throws IOException {
    LOG.info("Reading ORC rows from " + path + " with " + options);
    return new RecordReaderImpl(this, options);
  }
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message