hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject svn commit: r1360035 - in /hadoop/common/branches/branch-1: CHANGES.txt src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
Date Wed, 11 Jul 2012 06:43:36 GMT
Author: harsh
Date: Wed Jul 11 06:43:36 2012
New Revision: 1360035

URL: http://svn.apache.org/viewvc?rev=1360035&view=rev
Log:
HDFS-3628. The dfsadmin -setBalancerBandwidth command on branch-1 does not check for superuser
privileges. Contributed by Harsh J (harsh)

Modified:
    hadoop/common/branches/branch-1/CHANGES.txt
    hadoop/common/branches/branch-1/src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java

Modified: hadoop/common/branches/branch-1/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-1/CHANGES.txt?rev=1360035&r1=1360034&r2=1360035&view=diff
==============================================================================
--- hadoop/common/branches/branch-1/CHANGES.txt (original)
+++ hadoop/common/branches/branch-1/CHANGES.txt Wed Jul 11 06:43:36 2012
@@ -68,6 +68,9 @@ Release 1.2.0 - unreleased
 
     HDFS-2827. Cannot save namespace after renaming a directory above
     a file with an open lease. (Uma Maheswara Rao G via eli)
+
+    HDFS-3628. The dfsadmin -setBalancerBandwidth command on branch-1
+    does not check for superuser privileges. (harsh)
  
 Release 1.1.0 - unreleased
 

Modified: hadoop/common/branches/branch-1/src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-1/src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java?rev=1360035&r1=1360034&r2=1360035&view=diff
==============================================================================
--- hadoop/common/branches/branch-1/src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
(original)
+++ hadoop/common/branches/branch-1/src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
Wed Jul 11 06:43:36 2012
@@ -723,6 +723,7 @@ public class FSNamesystem implements FSC
    * @throws IOException
    */
   public void setBalancerBandwidth(long bandwidth) throws IOException {
+    checkSuperuserPrivilege();
     synchronized(datanodeMap) {
       for (DatanodeDescriptor nodeInfo : datanodeMap.values()) {
         nodeInfo.setBalancerBandwidth(bandwidth);



Mime
View raw message