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 "Fei Hui (JIRA)" <ji...@apache.org> on 2018/09/28 10:27:00 UTC

[jira] [Comment Edited] (HDFS-13248) RBF: Namenode need to choose block location for the client

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

Fei Hui edited comment on HDFS-13248 at 9/28/18 10:26 AM:
----------------------------------------------------------

[~elgoiri] I modify the code , please take a look.
{quote}
I think we should make a function to add to the favoredNodes and add a few unit tests just for it
{quote}
Done
{quote}
 and a full unit test that actually involves a Router and a Namenode.
{quote}
It's not so easy to verify the locality, think about later.
{quote}
We should do new ArrayList<String>(favoredNodes.length + 1);.
{quote}
Fixed
Upload v003 patch


was (Author: ferhui):
[~elgoiri] I modify the code , please take a look.
{quote}
I think we should make a function to add to the favoredNodes and add a few unit tests just for it
{quote}
Done
{quote}
 and a full unit test that actually involves a Router and a Namenode.
{quote}
It's not so easy to verify the locality, think about later.
{quote}
We should do new ArrayList<String>(favoredNodes.length + 1);.
{quote}
fixed

> RBF: Namenode need to choose block location for the client
> ----------------------------------------------------------
>
>                 Key: HDFS-13248
>                 URL: https://issues.apache.org/jira/browse/HDFS-13248
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Weiwei Wu
>            Assignee: Íñigo Goiri
>            Priority: Major
>         Attachments: HDFS-13248.000.patch, HDFS-13248.001.patch, HDFS-13248.002.patch, clientMachine-call-path.jpeg, debug-info-1.jpeg, debug-info-2.jpeg
>
>
> When execute a put operation via router, the NameNode will choose block location for the router, not for the real client. This will affect the file's locality.
> I think on both NameNode and Router, we should add a new addBlock method, or add a parameter for the current addBlock method, to pass the real client information.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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