MAPREDUCE-5843. Fixed TestMRKeyValueTextInputFormat to not leak files and thus avoid failing on Windows. Contributed by Varun Vasudev.

svn merge --ignore-ancestry -c 1589533 ../../trunk/


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1589534 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Vinod Kumar Vavilapalli 2014-04-23 22:54:55 +00:00
parent 69a90ff22f
commit b04bb049d2
2 changed files with 4 additions and 0 deletions

View File

@ -88,6 +88,9 @@ Release 2.4.1 - UNRELEASED
MAPREDUCE-5841. uber job doesn't terminate on getting mapred job kill MAPREDUCE-5841. uber job doesn't terminate on getting mapred job kill
(Sangjin Lee via jlowe) (Sangjin Lee via jlowe)
MAPREDUCE-5843. Fixed TestMRKeyValueTextInputFormat to not leak files and
thus avoid failing on Windows. (Varun Vasudev via vinodkv)
Release 2.4.0 - 2014-04-07 Release 2.4.0 - 2014-04-07
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -321,6 +321,7 @@ private static List<Text> readSplit(KeyValueTextInputFormat format,
while (reader.nextKeyValue()) { while (reader.nextKeyValue()) {
result.add(new Text(reader.getCurrentValue())); result.add(new Text(reader.getCurrentValue()));
} }
reader.close();
return result; return result;
} }