You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Jason Lowe (JIRA)" <ji...@apache.org> on 2017/12/01 14:56:00 UTC

[jira] [Created] (YARN-7595) Container launching code suppresses close exceptions after writes

Jason Lowe created YARN-7595:
--------------------------------

             Summary: Container launching code suppresses close exceptions after writes
                 Key: YARN-7595
                 URL: https://issues.apache.org/jira/browse/YARN-7595
             Project: Hadoop YARN
          Issue Type: Bug
          Components: nodemanager
            Reporter: Jason Lowe


There are a number of places in code related to container launching where the following pattern is used:
{code}
  try {
    ...write to stream outStream...
  } finally {
    IOUtils.cleanupWithLogger(LOG, outStream);
  }
{code}

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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org