Details
-
Bug
-
Status: Patch Available
-
Minor
-
Resolution: Unresolved
-
0.13.0
-
None
-
None
Description
In accumulo-handler/src/java/org/apache/hadoop/hive/accumulo/Utils.java , line 278 :
private static void copyToZipStream(InputStream is, ZipEntry entry, ZipOutputStream zos) throws IOException { zos.putNextEntry(entry); byte[] arr = new byte[4096]; int read = is.read(arr); while (read > -1) { zos.write(arr, 0, read); read = is.read(arr); } is.close();
If read() throws IOException, is would be left unclosed.