[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=17112692#comment-17112692 ] liuyanyu commented on HDFS-15365: - [~ayushtkn] Sorry, I did not check the open source code, will close this jira. > [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-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-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org
[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=17112036#comment-17112036 ] Ayush Saxena commented on HDFS-15365: - [~rain_lyy] This is in our internal code. I didn't contributed this here. :P So you can close this Jira here. > [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-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-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org
[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=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-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org