Details
-
Bug
-
Status: Patch Available
-
Trivial
-
Resolution: Unresolved
-
2.6.0
-
None
-
None
-
None
Description
In DFSOutputStream#actualGetFromOneDataNode(), it updates the ReadStatistics even the read is failed:
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); }
It indicates that ReadStatistics tracks actual read occurred. Need to add comment to ReadStatistics to make this clear.