Revert "HDFS-12903. [READ] Fix closing streams in ImageWriter"

This reverts commit c1bf2654b0e9118985b8518b0254eac4dd302a2f.
This commit is contained in:
Chris Douglas 2017-12-15 17:40:50 -08:00
parent 8239e3afb3
commit e515103a83

View File

@ -183,9 +183,9 @@ public ImageWriter(Options opts) throws IOException {
dirsTmp.deleteOnExit(); dirsTmp.deleteOnExit();
dirsTmpStream = new FileOutputStream(dirsTmp); dirsTmpStream = new FileOutputStream(dirsTmp);
dirs = beginSection(dirsTmpStream); dirs = beginSection(dirsTmpStream);
} catch (Throwable e) { } catch (IOException e) {
IOUtils.cleanupWithLogger(null, raw, dirsTmpStream); IOUtils.cleanupWithLogger(null, raw, dirsTmpStream);
throw new IOException(e); throw e;
} }
try { try {