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

close of ZipOutputStream in Utils#jarDir() should be placed in finally block

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.13.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      In accumulo-handler/src/java/org/apache/hadoop/hive/accumulo/Utils.java , line 308 :

      zos.closeEntry();
      zipDir(dir, relativePath, zos, true);
      zos.close();

      If exception is happened, ZipOutputStream would be left unclosed..

        Attachments

        1. HIVE-7929_002.patch
          2 kB
          skrho
        2. HIVE-7929_001.patch
          2 kB
          skrho

          Activity

            People

            • Assignee:
              rsk13th skrho
              Reporter:
              skrho skrho
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: