[
https://issues.apache.org/jira/browse/HDFS-13248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16392747#comment-16392747
]
Weiwei Wu commented on HDFS-13248:
----------------------------------
[~elgoiri] I have debug the trunk in my test cluster today, below is some debug
information:
In [^debug-info-1.jpeg], namenode receive a create request, the clientMachine
is get from RPC, and which is router-IP.
clientMachine will save to file's FileUnderConstructionFeature, and will use
to decide the block location when namenode receive the addBlock request(In
[^debug-info-2.jpeg]).
> 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
> Priority: Major
> Attachments: 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: [email protected]
For additional commands, e-mail: [email protected]