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 "Ted Yu (JIRA)" <ji...@apache.org> on 2014/02/22 15:35:19 UTC

[jira] [Created] (YARN-1753) FileSystemApplicationHistoryStore#HistoryFileReader#next() should check return value of dis.read()

Ted Yu created YARN-1753:
----------------------------

             Summary: FileSystemApplicationHistoryStore#HistoryFileReader#next() should check return value of dis.read()
                 Key: YARN-1753
                 URL: https://issues.apache.org/jira/browse/YARN-1753
             Project: Hadoop YARN
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


Here is related code:
{code}
      byte[] value = new byte[entry.getValueLength()];
      dis.read(value);
{code}
entry.getValueLength() bytes are expected to be read.
The return value from dis.read() should be checked against value length.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)