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

Fix Connection Leak in OrcRawRecordMerger

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 1.3.0, 2.0.1, 2.1.0
    • ORC
    • None

    Description

      In OrcRawRecordMerger.getLastFlushLength, if the opened stream throws an IOException on .available() or on .readLong(), the function will exit without closing the stream.

      This patch adds a try-with-resources to fix this.

      Attachments

        1. HIVE-13405.patch
          0.9 kB
          Thomas Poepping

        Activity

          People

            poeppt Thomas Poepping
            poeppt Thomas Poepping
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: