Revert "HDFS-12903. [READ] Fix closing streams in ImageWriter"
This reverts commit c1bf2654b0e9118985b8518b0254eac4dd302a2f.
This commit is contained in:
parent
8239e3afb3
commit
e515103a83
@ -183,9 +183,9 @@ public ImageWriter(Options opts) throws IOException {
|
||||
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
Block a user