You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Hudson (Jira)" <ji...@apache.org> on 2020/07/01 07:45:00 UTC

[jira] [Commented] (HADOOP-17032) Handle an internal dir in viewfs having multiple children mount points pointing to different filesystems

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

Hudson commented on HADOOP-17032:
---------------------------------

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #18398 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/18398/])
HADOOP-17032. Fix getContentSummary in ViewFileSystem to handle multiple (github: rev 3b8d0f803f1c6277f2c17a73cf4803ab0bd9954b)
* (edit) hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFileSystemBaseTest.java
* (edit) hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java


> Handle an internal dir in viewfs having multiple children mount points pointing to different filesystems
> --------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-17032
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17032
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, viewfs
>            Reporter: Abhishek Das
>            Assignee: Abhishek Das
>            Priority: Major
>             Fix For: 3.2.2, 3.3.1, 3.4.0, 3.1.5
>
>
> In case the viefs mount table is configured in a way where multiple child mount points are pointing to different file systems, the getContentSummary or getStatus don't return the expected result
> {code:java}
> mount link /a/b/ → hdfs://nn1/a/b
>  mount link /a/d/ → file:///nn2/c/d{code}
> b has two files and d has 1 file. So getContentSummary on / should return 3 files.
> It also fails for the following scenario:
> {code:java}
> mount link  /internalDir -> /internalDir/linternalDir2
> mount link  /internalDir -> /internalDir/linkToDir2 -> hdfs://nn1/dir2{code}
> Exception:
> {code:java}
> java.io.IOException: Internal implementation error: expected file name to be /java.io.IOException: Internal implementation error: expected file name to be /
>  at org.apache.hadoop.fs.viewfs.InternalDirOfViewFs.checkPathIsSlash(InternalDirOfViewFs.java:88) at org.apache.hadoop.fs.viewfs.InternalDirOfViewFs.getFileStatus(InternalDirOfViewFs.java:154) at org.apache.hadoop.fs.FileSystem.getContentSummary(FileSystem.java:1684) at org.apache.hadoop.fs.FileSystem.getContentSummary(FileSystem.java:1695) at org.apache.hadoop.fs.viewfs.ViewFileSystem.getContentSummary(ViewFileSystem.java:918) at org.apache.hadoop.fs.viewfs.ViewFileSystemBaseTest.testGetContentSummary(ViewFileSystemBaseTest.java:1106){code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org