Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-419

Ensure to call `close` at RecordReaderImpl constructor exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.5.0, 1.5.1, 1.5.2, 1.5.3
    • 1.5.4, 1.6.0
    • Java
    • None

    Description

      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.

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

      Attachments

        Issue Links

          Activity

            People

              dongjoon Dongjoon Hyun
              dongjoon Dongjoon Hyun
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: