MAPREDUCE-4577. HDFS-3672 broke TestCombineFileInputFormat.testMissingBlocks() test. Contributed by Aaron T. Myers.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1376298 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d7a90bc552
commit
0490537635
|
@ -50,6 +50,9 @@ Branch-2 ( Unreleased changes )
|
||||||
MAPREDUCE-4068. Jars in lib subdirectory of the submittable JAR are not added to the
|
MAPREDUCE-4068. Jars in lib subdirectory of the submittable JAR are not added to the
|
||||||
classpath (rkanter via tucu)
|
classpath (rkanter via tucu)
|
||||||
|
|
||||||
|
MAPREDUCE-4577. HDFS-3672 broke
|
||||||
|
TestCombineFileInputFormat.testMissingBlocks() test (atm)
|
||||||
|
|
||||||
Release 2.1.0-alpha - Unreleased
|
Release 2.1.0-alpha - Unreleased
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -125,9 +125,9 @@ public class TestCombineFileInputFormat extends TestCase {
|
||||||
BlockLocation[] locs =
|
BlockLocation[] locs =
|
||||||
super.getFileBlockLocations(stat, start, len);
|
super.getFileBlockLocations(stat, start, len);
|
||||||
if (name.equals(fileWithMissingBlocks)) {
|
if (name.equals(fileWithMissingBlocks)) {
|
||||||
System.out.println("Returing missing blocks for " + fileWithMissingBlocks);
|
System.out.println("Returning missing blocks for " + fileWithMissingBlocks);
|
||||||
locs[0] = new BlockLocation(new String[0], new String[0],
|
locs[0] = new HdfsBlockLocation(new BlockLocation(new String[0],
|
||||||
locs[0].getOffset(), locs[0].getLength());
|
new String[0], locs[0].getOffset(), locs[0].getLength()), null);
|
||||||
}
|
}
|
||||||
return locs;
|
return locs;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue