瀏覽代碼

HADOOP-12100. ImmutableFsPermission should not override applyUmask since that method doesn't modify the FsPermission (Bibin A. Chundatt via Colin P. McCabe)

(cherry picked from commit 6e0a9f92fe0052d39b95a605174b3f6423c6aae7)
Colin Patrick Mccabe 10 年之前
父節點
當前提交
2946e92f79

+ 4 - 0
hadoop-common-project/hadoop-common/CHANGES.txt

@@ -430,6 +430,10 @@ Release 2.7.1 - UNRELEASED
     HADOOP-12078. The default retry policy does not handle RetriableException
     HADOOP-12078. The default retry policy does not handle RetriableException
     correctly. (Arpit Agarwal)
     correctly. (Arpit Agarwal)
 
 
+    HADOOP-12100. ImmutableFsPermission should not override applyUmask since
+    that method doesn't modify the FsPermission (Bibin A Chundatt via Colin P.
+    McCabe)
+
 Release 2.7.0 - 2015-04-20
 Release 2.7.0 - 2015-04-20
 
 
   INCOMPATIBLE CHANGES
   INCOMPATIBLE CHANGES

+ 2 - 5
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/permission/FsPermission.java

@@ -375,13 +375,10 @@ public class FsPermission implements Writable {
     public ImmutableFsPermission(short permission) {
     public ImmutableFsPermission(short permission) {
       super(permission);
       super(permission);
     }
     }
-    @Override
-    public FsPermission applyUMask(FsPermission umask) {
-      throw new UnsupportedOperationException();
-    }
+
     @Override
     @Override
     public void readFields(DataInput in) throws IOException {
     public void readFields(DataInput in) throws IOException {
       throw new UnsupportedOperationException();
       throw new UnsupportedOperationException();
-    }    
+    }
   }
   }
 }
 }