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

Fix Connection Leak in OrcRawRecordMerger

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 1.3.0, 2.0.1, 2.1.0
    • Component/s: ORC
    • Labels:
      None
    • Target Version/s:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: