[
https://issues.apache.org/jira/browse/HDFS-16011?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17341414#comment-17341414
]
Ayush Saxena edited comment on HDFS-16011 at 5/8/21, 8:31 PM:
--------------------------------------------------------------
Thanx [~zhuxiangyi] for initiating this.
Was just casually going through the PR, I think you just got away with the
exception. You need to tackle the API behaviours as well to tackle the nested
mount points. One example being getListing(), While doing the listing you need
to handle the nested mount points. Rename should offer some resistance as well.
May be getContensummary() as well. In case this code hasn't already handled in
some way.
If I remember correctly, You need to give a check to the code handling
fallback, there are a few places based on the fact viewFs doesn't support
nested mount points, So need to give a check to that.
RBF supports nested mount points, so I think things should be doable.
Just out of curiosity, do you have a use case with Nested mount points in ViewFs
was (Author: ayushtkn):
Thanx [~zhuxiangyi] for initiating this.
Was just going through the PR, I think you just got away with the exception.
You need to tackle the API behaviours as well to tackle the nested mount
points. One example being getListing(), While doing the listing you need to
handle the nested mount points. Rename should offer some resistance as well.
If I remember correctly, You need to give a check to the code handling
fallback, there are a few places based on the fact viewFs doesn't support
nested mount points, So need to give a check to that.
RBF supports nested mount points, so I think things should be doable.
Just out of curiosity, do you have a use case with Nested mount points in ViewFs
> HDFS: Support viewfs nested mount
> ---------------------------------
>
> Key: HDFS-16011
> URL: https://issues.apache.org/jira/browse/HDFS-16011
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: hdfs, viewfs
> Affects Versions: 3.2.2, 3.3.1
> Reporter: zhu
> Assignee: zhu
> Priority: Major
> Labels: pull-request-available
> Time Spent: 20m
> Remaining Estimate: 0h
>
> The current viewfs does not support nested mount points. The current viewfs
> does not support nested mount points.
> *E.g:*
> 1./home/ => /home/
> 2./home/work => /home/work
> If mount point 1 is loaded, mount point 2 cannot be added, and the following
> exception will be thrown when loading 2.
> {code:java}
> throw new FileAlreadyExistsException("Path " + nextInode.fullPath +
> " already exists as link");
> {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]