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 jo...@apache.org on 2008/08/07 18:18:17 UTC
svn commit: r683642 - in /hadoop/core/trunk: CHANGES.txt
src/test/org/apache/hadoop/hdfs/ClusterTestDFS.java
src/test/org/apache/hadoop/hdfs/ClusterTestDFSNamespaceLogging.java
src/test/org/apache/hadoop/hdfs/server/common/TestDistributedUpgrade.java
Author: johan
Date: Thu Aug 7 09:18:17 2008
New Revision: 683642
URL: http://svn.apache.org/viewvc?rev=683642&view=rev
Log:
HADOOP-3904. Fix unit tests using the old dfs package name. (TszWo (Nicholas), SZE via johan)
Modified:
hadoop/core/trunk/CHANGES.txt
hadoop/core/trunk/src/test/org/apache/hadoop/hdfs/ClusterTestDFS.java
hadoop/core/trunk/src/test/org/apache/hadoop/hdfs/ClusterTestDFSNamespaceLogging.java
hadoop/core/trunk/src/test/org/apache/hadoop/hdfs/server/common/TestDistributedUpgrade.java
Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=683642&r1=683641&r2=683642&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Thu Aug 7 09:18:17 2008
@@ -234,6 +234,9 @@
HADOOP-3846. Fix unit test CreateEditsLog to generate paths correctly.
(Lohit Vjayarenu via cdouglas)
+
+ HADOOP-3904. Fix unit tests using the old dfs package name.
+ (TszWo (Nicholas), SZE via johan)
Release 0.18.0 - Unreleased
Modified: hadoop/core/trunk/src/test/org/apache/hadoop/hdfs/ClusterTestDFS.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/test/org/apache/hadoop/hdfs/ClusterTestDFS.java?rev=683642&r1=683641&r2=683642&view=diff
==============================================================================
--- hadoop/core/trunk/src/test/org/apache/hadoop/hdfs/ClusterTestDFS.java (original)
+++ hadoop/core/trunk/src/test/org/apache/hadoop/hdfs/ClusterTestDFS.java Thu Aug 7 09:18:17 2008
@@ -75,8 +75,7 @@
* (HadoopFS level) test {@link org.apache.hadoop.fs.TestFileSystem}.
*/
public class ClusterTestDFS extends TestCase implements FSConstants {
- private static final Log LOG =
- LogFactory.getLog("org.apache.hadoop.hdfs.ClusterTestDFS");
+ private static final Log LOG = LogFactory.getLog(ClusterTestDFS.class);
private static Configuration conf = new Configuration();
private static int BUFFER_SIZE =
@@ -520,12 +519,13 @@
}
public static void main(String[] args) throws Exception {
- String usage = "Usage: ClusterTestDFS (no args)";
+ String classname = ClusterTestDFS.class.getClass().getName();
+ String usage = "Usage: " + classname + " (no args)";
if (args.length != 0) {
System.err.println(usage);
System.exit(-1);
}
- String[] testargs = {"org.apache.hadoop.dfs.ClusterTestDFS"};
+ String[] testargs = {classname};
junit.textui.TestRunner.main(testargs);
}
Modified: hadoop/core/trunk/src/test/org/apache/hadoop/hdfs/ClusterTestDFSNamespaceLogging.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/test/org/apache/hadoop/hdfs/ClusterTestDFSNamespaceLogging.java?rev=683642&r1=683641&r2=683642&view=diff
==============================================================================
--- hadoop/core/trunk/src/test/org/apache/hadoop/hdfs/ClusterTestDFSNamespaceLogging.java (original)
+++ hadoop/core/trunk/src/test/org/apache/hadoop/hdfs/ClusterTestDFSNamespaceLogging.java Thu Aug 7 09:18:17 2008
@@ -45,8 +45,7 @@
* make sure that any namespace mutations are logged.
*/
public class ClusterTestDFSNamespaceLogging extends TestCase implements FSConstants {
- private static final Log LOG =
- LogFactory.getLog("org.apache.hadoop.hdfs.ClusterTestDFS");
+ private static final Log LOG = LogFactory.getLog(ClusterTestDFS.class);
private static Configuration conf = new Configuration();
@@ -455,12 +454,13 @@
}
public static void main(String[] args) throws Exception {
- String usage = "Usage: ClusterTestDFSNameSpaceChangeLogging (no args)";
+ String classname = ClusterTestDFSNamespaceLogging.class.getClass().getName();
+ String usage = "Usage: " + classname + " (no args)";
if (args.length != 0) {
System.err.println(usage);
System.exit(-1);
}
- String[] testargs = {"org.apache.hadoop.dfs.ClusterTestDFSNameSpaceChangeLogging"};
+ String[] testargs = {classname};
junit.textui.TestRunner.main(testargs);
}
Modified: hadoop/core/trunk/src/test/org/apache/hadoop/hdfs/server/common/TestDistributedUpgrade.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/test/org/apache/hadoop/hdfs/server/common/TestDistributedUpgrade.java?rev=683642&r1=683641&r2=683642&view=diff
==============================================================================
--- hadoop/core/trunk/src/test/org/apache/hadoop/hdfs/server/common/TestDistributedUpgrade.java (original)
+++ hadoop/core/trunk/src/test/org/apache/hadoop/hdfs/server/common/TestDistributedUpgrade.java Thu Aug 7 09:18:17 2008
@@ -36,8 +36,7 @@
/**
*/
public class TestDistributedUpgrade extends TestCase {
- private static final Log LOG = LogFactory.getLog(
- "org.apache.hadoop.dfs.TestDistributedUpgrade");
+ private static final Log LOG = LogFactory.getLog(TestDistributedUpgrade.class);
private Configuration conf;
private int testCounter = 0;
private MiniDFSCluster cluster = null;