You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@orc.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/10/11 05:59:00 UTC

[jira] [Commented] (ORC-419) Ensure to call `close` at RecordReaderImpl constructor exception

    [ https://issues.apache.org/jira/browse/ORC-419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16646008#comment-16646008 ] 

ASF GitHub Bot commented on ORC-419:
------------------------------------

dongjoon-hyun opened a new pull request #322: ORC-419: Ensure to call `close` at RecordReaderImpl constructor exception
URL: https://github.com/apache/orc/pull/322
 
 
   
   
   Currently, there is no way to call `RecordReaderImpl.close` if `RecordReader.rows` fails at creating `RecordReaderImpl`. This PR aims to try to invoke `close` in the constructor in case of Exceptions.
   
   ```java
     @Override
     public RecordReader rows(Options options) throws IOException {
       LOG.info("Reading ORC rows from " + path + " with " + options);
       return new RecordReaderImpl(this, options);
     }
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> 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.0, 1.5.1, 1.5.2, 1.5.3
>            Reporter: Dongjoon Hyun
>            Priority: Critical
>
> 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)