Browse Source

HADOOP-7664. Remove warmings when overriding final parameter configuration if the override value is same as the final parameter value. Contributed by Ravi Prakash

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security@1199571 13f79535-47bb-0310-9956-ffa450edef68
Tsz-wo Sze 13 years ago
parent
commit
b75404922f
2 changed files with 5 additions and 1 deletions
  1. 4 0
      CHANGES.txt
  2. 1 1
      src/core/org/apache/hadoop/conf/Configuration.java

+ 4 - 0
CHANGES.txt

@@ -88,6 +88,10 @@ Release 0.20.205.1 - unreleased
     HADOOP-5124. A few optimizations to FsNamesystem#RecentInvalidateSets.
     (Hairong Kuang via jitendra)
 
+    HADOOP-7664. Remove warmings when overriding final parameter configuration
+    if the override value is same as the final parameter value.
+    (Ravi Prakash via szetszwo)
+
   BUG FIXES
 
     HADOOP-7740. Fixed security audit logger configuration. 

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

@@ -1215,7 +1215,7 @@ public class Configuration implements Iterable<Map.Entry<String,String>>,
               if (storeResource) {
                 updatingResource.put(attr, name.toString());
               }
-            } else {
+            } else if (!value.equals(properties.getProperty(attr))) {
               LOG.warn(name+":a attempt to override final parameter: "+attr
                      +";  Ignoring.");
             }