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:
Konstantin Shvachko 2011-11-29 00:03:49 +00:00
parent 3083d7d7db
commit 68f56ca906
2 changed files with 4 additions and 2 deletions

View File

@ -1978,6 +1978,8 @@ Release 0.22.0 - Unreleased
HDFS-2346. TestHost2NodesMap & TestReplicasMap will fail depending upon HDFS-2346. TestHost2NodesMap & TestReplicasMap will fail depending upon
execution order of test methods (Laxman, Uma Maheswara Rao G via shv) 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 Release 0.21.1 - Unreleased
HDFS-1466. TestFcHdfsSymlink relies on /tmp/test not existing. (eli) HDFS-1466. TestFcHdfsSymlink relies on /tmp/test not existing. (eli)

View File

@ -156,8 +156,8 @@ public class TestParallelRead {
*/ */
private void pRead(int start, int len) throws Exception { private void pRead(int start, int len) throws Exception {
assertTrue( assertTrue(
"Bad args: " + start + " + " + len + " should be < " + fileSize, "Bad args: " + start + " + " + len + " should be <= " + fileSize,
start + len < fileSize); start + len <= fileSize);
DFSInputStream dis = testInfo.dis; DFSInputStream dis = testInfo.dis;
byte buf[] = new byte[len]; byte buf[] = new byte[len];