Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-8176

Close of FSDataOutputStream in OrcRecordUpdater ctor should be in finally clause

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

          try {
            FSDataOutputStream strm = fs.create(new Path(path, ACID_FORMAT), false);
            strm.writeInt(ORC_ACID_VERSION);
            strm.close();
          } catch (IOException ioe) {
      

      If strm.writeInt() throws IOE, strm would be left unclosed.

      Attachments

        1. HIVE-8176.patch
          1 kB
          SUYEON LEE
        2. HIVE-8176.v1.patch
          1 kB
          Ted Yu

        Activity

          People

            suyeon1222 SUYEON LEE
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: