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

This reverts commit c1bf2654b0.
This commit is contained in:
Chris Douglas 2017-12-15 17:40:50 -08:00
parent 8239e3afb3
commit e515103a83
1 changed files with 2 additions and 2 deletions

View File

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