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 "liuyanyu (Jira)" <ji...@apache.org> on 2020/05/20 03:56:00 UTC
[jira] [Commented] (HDFS-15365) [RBF] findMatching method return
wrong result
[ https://issues.apache.org/jira/browse/HDFS-15365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17111728#comment-17111728 ]
liuyanyu commented on HDFS-15365:
---------------------------------
As I check the code, the part marked in the figure should use actualDest.replaceFirst instead of actualDest.replace
[~ayushsaxena] pls help to review this
!image-2020-05-20-11-55-34-115.png!
> [RBF] findMatching method return wrong result
> ---------------------------------------------
>
> Key: HDFS-15365
> URL: https://issues.apache.org/jira/browse/HDFS-15365
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: rbf
> Affects Versions: 3.1.1
> Reporter: liuyanyu
> Assignee: liuyanyu
> Priority: Major
> Attachments: image-2020-05-20-11-42-12-763.png, image-2020-05-20-11-48-20-257.png, image-2020-05-20-11-55-34-115.png
>
>
> A mount table /hacluster_root -> hdfs://haclsuter/ is setted on the cluster, as follows:
> !image-2020-05-20-11-42-12-763.png!
> when I used org.apache.hadoop.hdfs.server.federation.router.FederationUtil#findMatching to find path hdfs://hacluster/yz0516/abc,the result of FederationUtil.findMatching(mountTableEntries.iterator(),
> /yz0516/abc, hacluster) is /hacluster_root/yz0516/hacluster_root/abc. This is wrong. The correct result should be /hacluster_root/yz0516/abc
--
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