You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Ayush Saxena (Jira)" <ji...@apache.org> on 2021/01/29 11:35:00 UTC
[jira] [Commented] (HDFS-14343) RBF: Fix renaming folders spread
across multiple subclusters
[ https://issues.apache.org/jira/browse/HDFS-14343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17274357#comment-17274357 ]
Ayush Saxena commented on HDFS-14343:
-------------------------------------
Hi [~zhengchenyu],
For your case-1 :
bq. If /user/userA is mountable which mounts two nameservice: ns1, ns2. But if both hdfs://ns1/user/userA/a.log and hdfs://ns2/user/userA/a.log exists. I want to remove hdfs://ns-fed/user/userA/a.log (Note: a.log is file) to trash, then only one nameservice take effect.
In multiple destination scenarios, same Directories can be there in both namespaces, but not files, Try creating a file through router it won't allow you to create in another namespace, if the same path exists in one namespace. We have a check during the create call in case there are multiple destinations, check if the file already exists.
Such a scenario can only happen if someone directly goes to the namenode and create the file instead of going through Router, And that isn't a valid use case, If you create through router you would be able to delete through it without any issues.
case-2
bq. In other way, if we hdfs://ns-fed/user/userA/dirA (Note: dirA is directroy.) If hdfs://ns1/user/userA/dirA's permission is not same with hdfs://ns2/user/userA/dirA's permission.
Again if you set permission through router, permissions would be same in both namespaces,
Case-3
In case one nameservice is down, the call will fail unless fault tolerance isn't turned on. That is another broad subject...
> RBF: Fix renaming folders spread across multiple subclusters
> ------------------------------------------------------------
>
> Key: HDFS-14343
> URL: https://issues.apache.org/jira/browse/HDFS-14343
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Reporter: Íñigo Goiri
> Assignee: Ayush Saxena
> Priority: Major
> Fix For: 3.3.0, HDFS-13891
>
> Attachments: HDFS-14343-HDFS-13891-01.patch, HDFS-14343-HDFS-13891-02.patch, HDFS-14343-HDFS-13891-03.patch, HDFS-14343-HDFS-13891-04.patch, HDFS-14343-HDFS-13891-05.patch
>
>
> The {{RouterClientProtocol#rename()}} function assumes that we are renaming files and only renames one of them (i.e., {{invokeSequential()}}). In the case of folders which are in all subclusters (e.g., HASH_ALL) we should rename all locations (i.e., {{invokeAll()}}).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org