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-416) Avoid opening data reader when there is no stripe
Date Wed, 10 Oct 2018 09:36:00 GMT
Dongjoon Hyun created ORC-416:
---------------------------------

             Summary: Avoid opening data reader when there is no stripe
                 Key: ORC-416
                 URL: https://issues.apache.org/jira/browse/ORC-416
             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, `RecordReaderImpl` invokes `dataReader.open` in the middle of the constructor.
We can postpone this until `advanceToNextRow` reads the stripe at the end of the constructor.
{code:java}
this.dataReader.open();{code}
This will reduce the chance of potential open-file leakages due to IOException and OOM during
`RecordReaderImpl` construction.



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

Mime
View raw message