Revert "HDFS-12903. [READ] Fix closing streams in ImageWriter"
This reverts commit c1bf2654b0
.
This commit is contained in:
parent
8239e3afb3
commit
e515103a83
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue