From 308e3368533990d3cde74c30cbc30be861c8809b Mon Sep 17 00:00:00 2001 From: cnauroth Date: Thu, 9 Oct 2014 22:35:58 -0700 Subject: [PATCH] MAPREDUCE-6123. TestCombineFileInputFormat incorrectly starts 2 MiniDFSCluster instances. Contributed by Chris Nauroth. (cherry picked from commit 777877d079ecb025c293deac741800800e413179) (cherry picked from commit f6278cbac50522302ee7ad3cbbe21d0aeefa76d8) --- hadoop-mapreduce-project/CHANGES.txt | 3 +++ .../mapreduce/lib/input/TestCombineFileInputFormat.java | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hadoop-mapreduce-project/CHANGES.txt b/hadoop-mapreduce-project/CHANGES.txt index d5baf1dd225..d9a2f6332b6 100644 --- a/hadoop-mapreduce-project/CHANGES.txt +++ b/hadoop-mapreduce-project/CHANGES.txt @@ -186,6 +186,9 @@ Release 2.6.0 - UNRELEASED MAPREDUCE-6122. TestLineRecordReader may fail due to test data files checked out of git with incorrect line endings. (cnauroth) + MAPREDUCE-6123. TestCombineFileInputFormat incorrectly starts 2 + MiniDFSCluster instances. (cnauroth) + Release 2.5.1 - 2014-09-05 INCOMPATIBLE CHANGES diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapreduce/lib/input/TestCombineFileInputFormat.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapreduce/lib/input/TestCombineFileInputFormat.java index 4290914728e..db51ec6a9c5 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapreduce/lib/input/TestCombineFileInputFormat.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapreduce/lib/input/TestCombineFileInputFormat.java @@ -1286,10 +1286,6 @@ public class TestCombineFileInputFormat extends TestCase { .build(); dfs.waitActive(); - dfs = new MiniDFSCluster.Builder(conf).racks(rack1).hosts(hosts1) - .build(); - dfs.waitActive(); - FileSystem fileSys = dfs.getFileSystem(); // Set up the following directory structure: