hadoop-mapreduce-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From szets...@apache.org
Subject svn commit: r1151349 - in /hadoop/common/trunk/mapreduce: CHANGES.txt src/test/mapred/org/apache/hadoop/tools/TestCopyFiles.java src/test/mapred/org/apache/hadoop/tools/TestDistCh.java
Date Wed, 27 Jul 2011 06:27:03 GMT
Author: szetszwo
Date: Wed Jul 27 06:27:00 2011
New Revision: 1151349

URL: http://svn.apache.org/viewvc?rev=1151349&view=rev
Log:
MAPREDUCE-2723. Remove directly accessing FSNamesystem.LOG from TestCopyFiles and TestDistCh.

Modified:
    hadoop/common/trunk/mapreduce/CHANGES.txt
    hadoop/common/trunk/mapreduce/src/test/mapred/org/apache/hadoop/tools/TestCopyFiles.java
    hadoop/common/trunk/mapreduce/src/test/mapred/org/apache/hadoop/tools/TestDistCh.java

Modified: hadoop/common/trunk/mapreduce/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/mapreduce/CHANGES.txt?rev=1151349&r1=1151348&r2=1151349&view=diff
==============================================================================
--- hadoop/common/trunk/mapreduce/CHANGES.txt (original)
+++ hadoop/common/trunk/mapreduce/CHANGES.txt Wed Jul 27 06:27:00 2011
@@ -356,6 +356,9 @@ Trunk (unreleased changes)
     MAPREDUCE-2622. Remove the last remaining reference to the deprecated
     configuration "io.sort.mb". (Harsh J Chouraria via todd)
 
+    MAPREDUCE-2723. Remove directly accessing FSNamesystem.LOG from
+    TestCopyFiles and TestDistCh.  (szetszwo)
+
 Release 0.22.0 - Unreleased
 
   INCOMPATIBLE CHANGES

Modified: hadoop/common/trunk/mapreduce/src/test/mapred/org/apache/hadoop/tools/TestCopyFiles.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/mapreduce/src/test/mapred/org/apache/hadoop/tools/TestCopyFiles.java?rev=1151349&r1=1151348&r2=1151349&view=diff
==============================================================================
--- hadoop/common/trunk/mapreduce/src/test/mapred/org/apache/hadoop/tools/TestCopyFiles.java
(original)
+++ hadoop/common/trunk/mapreduce/src/test/mapred/org/apache/hadoop/tools/TestCopyFiles.java
Wed Jul 27 06:27:00 2011
@@ -61,7 +61,7 @@ public class TestCopyFiles extends TestC
     ((Log4JLogger)LogFactory.getLog("org.apache.hadoop.hdfs.StateChange")
         ).getLogger().setLevel(Level.OFF);
     ((Log4JLogger)DataNode.LOG).getLogger().setLevel(Level.OFF);
-    ((Log4JLogger)FSNamesystem.LOG).getLogger().setLevel(Level.OFF);
+    ((Log4JLogger)LogFactory.getLog(FSNamesystem.class)).getLogger().setLevel(Level.OFF);
     ((Log4JLogger)DistCp.LOG).getLogger().setLevel(Level.ALL);
   }
   

Modified: hadoop/common/trunk/mapreduce/src/test/mapred/org/apache/hadoop/tools/TestDistCh.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/mapreduce/src/test/mapred/org/apache/hadoop/tools/TestDistCh.java?rev=1151349&r1=1151348&r2=1151349&view=diff
==============================================================================
--- hadoop/common/trunk/mapreduce/src/test/mapred/org/apache/hadoop/tools/TestDistCh.java
(original)
+++ hadoop/common/trunk/mapreduce/src/test/mapred/org/apache/hadoop/tools/TestDistCh.java
Wed Jul 27 06:27:00 2011
@@ -48,7 +48,7 @@ public class TestDistCh extends junit.fr
     ((Log4JLogger)LogFactory.getLog("org.apache.hadoop.hdfs.StateChange")
         ).getLogger().setLevel(Level.OFF);
     ((Log4JLogger)DataNode.LOG).getLogger().setLevel(Level.OFF);
-    ((Log4JLogger)FSNamesystem.LOG).getLogger().setLevel(Level.OFF);
+    ((Log4JLogger)LogFactory.getLog(FSNamesystem.class)).getLogger().setLevel(Level.OFF);
     ((Log4JLogger)TaskTracker.LOG).getLogger().setLevel(Level.OFF);
   }
 



Mime
View raw message