hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lei (Eddy) Xu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-11626) DFSInputStream should only update ReadStatistics when the read is success.
Date Mon, 23 Feb 2015 23:16:11 GMT
Lei (Eddy) Xu created HADOOP-11626:
--------------------------------------

             Summary: DFSInputStream should only update ReadStatistics when the read is success.
                 Key: HADOOP-11626
                 URL: https://issues.apache.org/jira/browse/HADOOP-11626
             Project: Hadoop Common
          Issue Type: Bug
    Affects Versions: 2.6.0
            Reporter: Lei (Eddy) Xu
            Assignee: Lei (Eddy) Xu
            Priority: Trivial


In {{DFSOutputStream#actualGetFromOneDataNode()}}, it updates the {{ReadStatistics}} even
the read is failed:

{code}
        int nread = reader.readAll(buf, offset, len);
        updateReadStatistics(readStatistics, nread, reader);

        if (nread != len) {
          throw new IOException("truncated return from reader.read(): " +
                                "excpected " + len + ", got " + nread);
        }
{code}

It should only record success read, i.e., after throwing {{IOE}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message