HDFS-2287. Fix second assert.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1207710 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3083d7d7db
commit
68f56ca906
|
@ -1978,6 +1978,8 @@ Release 0.22.0 - Unreleased
|
|||
HDFS-2346. TestHost2NodesMap & TestReplicasMap will fail depending upon
|
||||
execution order of test methods (Laxman, Uma Maheswara Rao G via shv)
|
||||
|
||||
HDFS-2287. TestParallelRead has a small off-by-one bug. (todd)
|
||||
|
||||
Release 0.21.1 - Unreleased
|
||||
|
||||
HDFS-1466. TestFcHdfsSymlink relies on /tmp/test not existing. (eli)
|
||||
|
|
|
@ -156,8 +156,8 @@ public class TestParallelRead {
|
|||
*/
|
||||
private void pRead(int start, int len) throws Exception {
|
||||
assertTrue(
|
||||
"Bad args: " + start + " + " + len + " should be < " + fileSize,
|
||||
start + len < fileSize);
|
||||
"Bad args: " + start + " + " + len + " should be <= " + fileSize,
|
||||
start + len <= fileSize);
|
||||
DFSInputStream dis = testInfo.dis;
|
||||
|
||||
byte buf[] = new byte[len];
|
||||
|
|
Loading…
Reference in New Issue