Repository: hadoop Updated Branches: refs/heads/branch-2 2156e38d5 -> 92f52e896
HADOOP-11587. TestMapFile#testMainMethodMapFile creates test files in hadoop-common project root. Contributed by Xiaoyu Yao. Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/92f52e89 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/92f52e89 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/92f52e89 Branch: refs/heads/branch-2 Commit: 92f52e89623b270faccc16e2c6aa877358981c49 Parents: 2156e38 Author: Haohui Mai <[email protected]> Authored: Thu Feb 12 10:30:39 2015 -0800 Committer: Haohui Mai <[email protected]> Committed: Thu Feb 12 10:31:04 2015 -0800 ---------------------------------------------------------------------- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../src/test/java/org/apache/hadoop/io/TestMapFile.java | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/92f52e89/hadoop-common-project/hadoop-common/CHANGES.txt ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index e5e9f8e..25b5731 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -519,6 +519,9 @@ Release 2.7.0 - UNRELEASED HADOOP-10953. NetworkTopology#add calls NetworkTopology#toString without holding the netlock (Liang Xie via Colin P. McCabe) + HADOOP-11587. TestMapFile#testMainMethodMapFile creates test files in + hadoop-common project root. (Xiaoyu Yao via wheat9) + Release 2.6.1 - UNRELEASED INCOMPATIBLE CHANGES http://git-wip-us.apache.org/repos/asf/hadoop/blob/92f52e89/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/TestMapFile.java ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/TestMapFile.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/TestMapFile.java index 34aabb1..ced74fb 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/TestMapFile.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/TestMapFile.java @@ -602,10 +602,9 @@ public class TestMapFile { @Test public void testMainMethodMapFile() { - String path = new Path(TEST_DIR, "mainMethodMapFile.mapfile").toString(); String inFile = "mainMethodMapFile.mapfile"; - String outFile = "mainMethodMapFile.mapfile"; - String[] args = { path, outFile }; + String path = new Path(TEST_DIR, inFile).toString(); + String[] args = { path, path }; MapFile.Writer writer = null; try { writer = createWriter(inFile, IntWritable.class, Text.class);
