From d356d64479168de202110ab0df4eb75564d4dc61 Mon Sep 17 00:00:00 2001 From: Tsz-wo Sze Date: Wed, 27 Jul 2011 06:27:00 +0000 Subject: [PATCH] MAPREDUCE-2723. Remove directly accessing FSNamesystem.LOG from TestCopyFiles and TestDistCh. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1151349 13f79535-47bb-0310-9956-ffa450edef68 --- mapreduce/CHANGES.txt | 3 +++ .../src/test/mapred/org/apache/hadoop/tools/TestCopyFiles.java | 2 +- .../src/test/mapred/org/apache/hadoop/tools/TestDistCh.java | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/mapreduce/CHANGES.txt b/mapreduce/CHANGES.txt index ef9aff0aa7..657125583d 100644 --- a/mapreduce/CHANGES.txt +++ b/mapreduce/CHANGES.txt @@ -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 diff --git a/mapreduce/src/test/mapred/org/apache/hadoop/tools/TestCopyFiles.java b/mapreduce/src/test/mapred/org/apache/hadoop/tools/TestCopyFiles.java index b433605633..ce6f400ae7 100644 --- a/mapreduce/src/test/mapred/org/apache/hadoop/tools/TestCopyFiles.java +++ b/mapreduce/src/test/mapred/org/apache/hadoop/tools/TestCopyFiles.java @@ -61,7 +61,7 @@ public class TestCopyFiles extends TestCase { ((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); } diff --git a/mapreduce/src/test/mapred/org/apache/hadoop/tools/TestDistCh.java b/mapreduce/src/test/mapred/org/apache/hadoop/tools/TestDistCh.java index 43e583395b..24e7c577e3 100644 --- a/mapreduce/src/test/mapred/org/apache/hadoop/tools/TestDistCh.java +++ b/mapreduce/src/test/mapred/org/apache/hadoop/tools/TestDistCh.java @@ -48,7 +48,7 @@ public class TestDistCh extends junit.framework.TestCase { ((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); }