hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "JongWon Park (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (YARN-1753) FileSystemApplicationHistoryStore#HistoryFileReader#next() should check return value of dis.read()
Date Mon, 18 Aug 2014 07:06:18 GMT

     [ https://issues.apache.org/jira/browse/YARN-1753?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

JongWon Park updated YARN-1753:
-------------------------------

    Attachment: YARN-1753.patch

> 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
>         Attachments: YARN-1753.patch
>
>
> 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.2#6252)

Mime
View raw message