hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1153317 - in /hadoop/common/branches/branch-0.20-security: CHANGES.txt src/core/org/apache/hadoop/util/DiskChecker.java
Date Wed, 03 Aug 2011 01:12:49 GMT
Author: eli
Date: Wed Aug  3 01:12:48 2011
New Revision: 1153317

URL: http://svn.apache.org/viewvc?rev=1153317&view=rev
Log:
HDFS-2117. DiskChecker#mkdirsWithExistsAndPermissionCheck may return true even when the dir
is not created. Contributed by Eli Collins

Modified:
    hadoop/common/branches/branch-0.20-security/CHANGES.txt
    hadoop/common/branches/branch-0.20-security/src/core/org/apache/hadoop/util/DiskChecker.java

Modified: hadoop/common/branches/branch-0.20-security/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security/CHANGES.txt?rev=1153317&r1=1153316&r2=1153317&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security/CHANGES.txt (original)
+++ hadoop/common/branches/branch-0.20-security/CHANGES.txt Wed Aug  3 01:12:48 2011
@@ -24,6 +24,9 @@ Release 0.20.205.0 - unreleased
     HDFS-2053. Bug in INodeDirectory#computeContentSummary warning
     (Michael Noll via eli)
 
+    HDFS-2117. DiskChecker#mkdirsWithExistsAndPermissionCheck may
+    return true even when the dir is not created. (eli)
+
   IMPROVEMENTS
 
     MAPREDUCE-7343. Make the number of warnings accepted by test-patch

Modified: hadoop/common/branches/branch-0.20-security/src/core/org/apache/hadoop/util/DiskChecker.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security/src/core/org/apache/hadoop/util/DiskChecker.java?rev=1153317&r1=1153316&r2=1153317&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security/src/core/org/apache/hadoop/util/DiskChecker.java
(original)
+++ hadoop/common/branches/branch-0.20-security/src/core/org/apache/hadoop/util/DiskChecker.java
Wed Aug  3 01:12:48 2011
@@ -138,6 +138,8 @@ public class DiskChecker {
       if (created) {
         localFS.setPermission(dir, expected);
         return true;
+      } else {
+        return false;
       }
     }
 



Mime
View raw message