You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
} finally {
if (mustCloseStream) {
IOUtils.cleanup(LOG, inStream);
try {
if (reader != null)
reader.close();
if (compressedIn != null)
compressedIn.close();
if (commpressedOut != null)
commpressedOut.close();
outStream.close();
}
catch(IOException exception) {
LOG.error("Could not close output-stream. ", exception);
throw exception;
}
}
}
Currently, If we get any error/exception while closing reader then we are not closing the others outputstream, compressedin and compressedout after that.
Code snippet (RetriableFileCopyCommand.java)
Currently, If we get any error/exception while closing reader then we are not closing the others outputstream, compressedin and compressedout after that.
Code snippet: (FileUtil.java)
we should close the reader as well and close all the stream separately.
The text was updated successfully, but these errors were encountered: