diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/shell/TestAclCommands.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/shell/TestAclCommands.java index 34d9a9613a..b14cd37c49 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/shell/TestAclCommands.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/shell/TestAclCommands.java @@ -187,6 +187,9 @@ public class TestAclCommands { @Override public FileStatus getFileStatus(Path f) throws IOException { + if (f.isRoot()) { + return new FileStatus(0, true, 0, 0, 0, f); + } return null; } diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES-HDFS-4685.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES-HDFS-4685.txt index 14c187db89..cacd9f416c 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES-HDFS-4685.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES-HDFS-4685.txt @@ -107,3 +107,6 @@ HDFS-4685 (Unreleased) HADOOP-10270. getfacl does not display effective permissions of masked entries. (cnauroth) + + HADOOP-10344. Fix TestAclCommands after merging HADOOP-10338 patch. + (cnauroth)