Details
Description
There are a number of places in code related to container launching where the following pattern is used:
try { ...write to stream outStream... } finally { IOUtils.cleanupWithLogger(LOG, outStream); }
Unfortunately this suppresses any IOException that occurs during the close() method on outStream. If the stream is buffered or could otherwise fail to finish writing the file when trying to close then this can lead to partial/corrupted data without throwing an I/O error.