浏览代码

HADOOP-8995. Remove unnecessary bogus exception from Configuration.java. Contributed by Jing Zhao.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1@1403562 13f79535-47bb-0310-9956-ffa450edef68
Suresh Srinivas 12 年之前
父节点
当前提交
183d9023d9
共有 2 个文件被更改,包括 3 次插入8 次删除
  1. 3 0
      CHANGES.txt
  2. 0 8
      src/core/org/apache/hadoop/conf/Configuration.java

+ 3 - 0
CHANGES.txt

@@ -113,6 +113,9 @@ Release 1.2.0 - unreleased
     HDFS-4122. Cleanup HDFS logs and reduce the size of logged messages.
     HDFS-4122. Cleanup HDFS logs and reduce the size of logged messages.
     (suresh)
     (suresh)
 
 
+    HADOOP-8995. Remove unnecessary bogus exception from Configuration.java.
+    (Jing Zhao via suresh)
+
   OPTIMIZATIONS
   OPTIMIZATIONS
 
 
     HDFS-2533. Backport: Remove needless synchronization on some FSDataSet
     HDFS-2533. Backport: Remove needless synchronization on some FSDataSet

+ 0 - 8
src/core/org/apache/hadoop/conf/Configuration.java

@@ -227,9 +227,6 @@ public class Configuration implements Iterable<Map.Entry<String,String>>,
   public Configuration(boolean loadDefaults) {
   public Configuration(boolean loadDefaults) {
     this.loadDefaults = loadDefaults;
     this.loadDefaults = loadDefaults;
     updatingResource = new HashMap<String, String>();
     updatingResource = new HashMap<String, String>();
-    if (LOG.isDebugEnabled()) {
-      LOG.debug(StringUtils.stringifyException(new IOException("config()")));
-    }
     synchronized(Configuration.class) {
     synchronized(Configuration.class) {
       REGISTRY.put(this, null);
       REGISTRY.put(this, null);
     }
     }
@@ -242,11 +239,6 @@ public class Configuration implements Iterable<Map.Entry<String,String>>,
    */
    */
   @SuppressWarnings("unchecked")
   @SuppressWarnings("unchecked")
   public Configuration(Configuration other) {
   public Configuration(Configuration other) {
-    if (LOG.isDebugEnabled()) {
-      LOG.debug(StringUtils.stringifyException
-                (new IOException("config(config)")));
-    }
-
     this.resources = (ArrayList) other.resources.clone();
     this.resources = (ArrayList) other.resources.clone();
     synchronized (other) {
     synchronized (other) {
       if (other.properties != null) {
       if (other.properties != null) {