You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by cn...@apache.org on 2013/07/04 18:08:55 UTC
svn commit: r1499797 - in /hadoop/common/branches/branch-1-win:
CHANGES.branch-1-win.txt
src/test/org/apache/hadoop/hdfs/TestFileLengthOnClusterRestart.java
src/test/org/apache/hadoop/mapred/TestJobTrackerQuiescence.java
Author: cnauroth
Date: Thu Jul 4 16:08:54 2013
New Revision: 1499797
URL: http://svn.apache.org/r1499797
Log:
HADOOP-9687. TestJobTrackerQuiescence and TestFileLengthOnClusterRestart failed caused by incorrect DFS path construction on Windows. Contributed by Xi Fang.
Modified:
hadoop/common/branches/branch-1-win/CHANGES.branch-1-win.txt
hadoop/common/branches/branch-1-win/src/test/org/apache/hadoop/hdfs/TestFileLengthOnClusterRestart.java
hadoop/common/branches/branch-1-win/src/test/org/apache/hadoop/mapred/TestJobTrackerQuiescence.java
Modified: hadoop/common/branches/branch-1-win/CHANGES.branch-1-win.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-1-win/CHANGES.branch-1-win.txt?rev=1499797&r1=1499796&r2=1499797&view=diff
==============================================================================
--- hadoop/common/branches/branch-1-win/CHANGES.branch-1-win.txt (original)
+++ hadoop/common/branches/branch-1-win/CHANGES.branch-1-win.txt Thu Jul 4 16:08:54 2013
@@ -288,6 +288,10 @@ Branch-hadoop-1-win (branched from branc
MAPREDUCE-5330. JVM manager should not forcefully kill the process on
Signal.TERM on Windows. (Xi Fang via cnauroth)
+ HADOOP-9687. TestJobTrackerQuiescence and TestFileLengthOnClusterRestart
+ failed caused by incorrect DFS path construction on Windows. (Xi Fang via
+ cnauroth)
+
Merged from branch-1
HDFS-385. Backport: Add support for an experimental API that allows a
Modified: hadoop/common/branches/branch-1-win/src/test/org/apache/hadoop/hdfs/TestFileLengthOnClusterRestart.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-1-win/src/test/org/apache/hadoop/hdfs/TestFileLengthOnClusterRestart.java?rev=1499797&r1=1499796&r2=1499797&view=diff
==============================================================================
--- hadoop/common/branches/branch-1-win/src/test/org/apache/hadoop/hdfs/TestFileLengthOnClusterRestart.java (original)
+++ hadoop/common/branches/branch-1-win/src/test/org/apache/hadoop/hdfs/TestFileLengthOnClusterRestart.java Thu Jul 4 16:08:54 2013
@@ -44,7 +44,7 @@ public class TestFileLengthOnClusterRest
FSDataOutputStream out = null;
DistributedFileSystem dfs = null;
try {
- Path path = new Path(MiniDFSCluster.getBaseDir().getPath(), "test");
+ Path path = new Path("/tmp/TestFileLengthOnClusterRestart");
dfs = (DistributedFileSystem) cluster.getFileSystem();
out = dfs.create(path);
int fileLength = 1030;
Modified: hadoop/common/branches/branch-1-win/src/test/org/apache/hadoop/mapred/TestJobTrackerQuiescence.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-1-win/src/test/org/apache/hadoop/mapred/TestJobTrackerQuiescence.java?rev=1499797&r1=1499796&r2=1499797&view=diff
==============================================================================
--- hadoop/common/branches/branch-1-win/src/test/org/apache/hadoop/mapred/TestJobTrackerQuiescence.java (original)
+++ hadoop/common/branches/branch-1-win/src/test/org/apache/hadoop/mapred/TestJobTrackerQuiescence.java Thu Jul 4 16:08:54 2013
@@ -48,7 +48,7 @@ import org.junit.Test;
*/
public class TestJobTrackerQuiescence {
final Path testDir =
- new Path(System.getProperty("test.build.data", "/tmp"), "jt-safemode");
+ new Path("/tmp/jt-safemode");
final Path inDir = new Path(testDir, "input");
final Path shareDir = new Path(testDir, "share");
final Path outputDir = new Path(testDir, "output");