[ 
https://issues.apache.org/jira/browse/HDFS-5277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14600898#comment-14600898
 ] 

Vinayakumar B commented on HDFS-5277:
-------------------------------------

Source Fix looks good. 
But in test, test failure is actually not fixed. Its just not using {{TestLFS}} 
which have the different home directory.
Since {{LocalFileSystem}} have {{RawLocalFileSystem}} as a child fs, Overriding 
the home directory required in child also during creation. This can be done as 
below.

{code}
     }
-    TestLFS(Path home) {
-      super();
+
+    TestLFS(final Path home) {
+      super(new RawLocalFileSystem() {
+        @Override
+        protected Path getInitialWorkingDirectory() {
+          return makeQualified(home);
+        }
+
+        @Override
+        public Path getHomeDirectory() {
+          return makeQualified(home);
+        }
+      });
       this.home = home;
     }{code}


> hadoop fs -expunge does not work for federated namespace 
> ---------------------------------------------------------
>
>                 Key: HDFS-5277
>                 URL: https://issues.apache.org/jira/browse/HDFS-5277
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 2.0.5-alpha
>            Reporter: Vrushali C
>            Assignee: J.Andreina
>         Attachments: HDFS-5277.1.patch, HDFS-5277.2.patch
>
>
> We noticed that hadoop fs -expunge command does not work across federated 
> namespace. This seems to look at only /user/<username>/.Trash instead of 
> traversing all available namespace and expunging from individual namespace.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to