[ 
https://issues.apache.org/jira/browse/HDFS-16216?focusedWorklogId=656794&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-656794
 ]

ASF GitHub Bot logged work on HDFS-16216:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 28/Sep/21 20:19
            Start Date: 28/Sep/21 20:19
    Worklog Time Spent: 10m 
      Work Description: tomscut commented on a change in pull request #3415:
URL: https://github.com/apache/hadoop/pull/3415#discussion_r717704397



##########
File path: 
hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/router/TestRouterMountTable.java
##########
@@ -19,6 +19,7 @@
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNull;

Review comment:
       We should remove this unused import.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 656794)
    Time Spent: 50m  (was: 40m)

> RBF: Wrong path when get mount point status
> -------------------------------------------
>
>                 Key: HDFS-16216
>                 URL: https://issues.apache.org/jira/browse/HDFS-16216
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: zhuobin zheng
>            Assignee: zhuobin zheng
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> When we get mount point status, we will get wrong path in file status.
> {code:java}
> // prepare mount env
> hdfs dfsrouteradmin -add /test ns1 /test
> hdfs dfsrouteradmin -add /test/test1/test2/test3 ns1 /test/test1/test2/test3
> {code}
> {code:java}
> // java code
> public class TmpOp { 
> public static void main(String[] args) throws Exception { 
>   Configuration conf = new HdfsConfiguration(); 
>   FileSystem fs = FileSystem.get(conf); 
>   FileStatus test = fs.getFileStatus(new Path("/test")); 
>   FileStatus test1 = fs.getFileStatus(new Path("/test/test1")); 
>   FileStatus test2 = fs.getFileStatus(new Path("/test/test1/test2"));     
>   System.out.println(test.getPath()); 
>   System.out.println(test1.getPath()); 
>   System.out.println(test2.getPath()); 
> } 
> }
> {code}
>  
> {code:java}
> // result
> hdfs://ns1/test/test
> hdfs://ns1/test/test1/test1
> hdfs://ns1/test/test1/test2/test2
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to