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 "Prabhu Joseph (Jira)" <ji...@apache.org> on 2020/06/17 09:24:00 UTC
[jira] [Created] (YARN-10320) Replace FSDataInputStream#read with
readFully in Log Aggregation
Prabhu Joseph created YARN-10320:
------------------------------------
Summary: Replace FSDataInputStream#read with readFully in Log Aggregation
Key: YARN-10320
URL: https://issues.apache.org/jira/browse/YARN-10320
Project: Hadoop YARN
Issue Type: Bug
Components: log-aggregation
Affects Versions: 3.3.0
Reporter: Prabhu Joseph
Have observed Log Aggregation code has used FSDataInputStream#read instead of readFully in multiple places like below. One of the place is fixed by YARN-8106.
This Jira targets to fix at all other places.
LogAggregationIndexedFileController#loadUUIDFromLogFile
{code}
byte[] b = new byte[uuid.length];
int actual = fsDataInputStream.read(b);
if (actual != uuid.length || Arrays.equals(b, uuid)) {
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org