[
https://issues.apache.org/jira/browse/HDFS-15423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17319824#comment-17319824
]
Hui Fei commented on HDFS-15423:
--------------------------------
Hi compile fails on trunk. Maybe it's related to this.
RouterWebHdfsMethods#chooseDatanode
{code:java}
resolvedNs = rpcServer.getCreateLocation(path).getNameserviceId();
{code}
But getCreateLocation is defined as this, it is used with wrong arguments.
{code:java}
RemoteLocation getCreateLocation(
final String src, final List<RemoteLocation> locations)
throws IOException {
...
}{code}
> RBF: WebHDFS create shouldn't choose DN from all sub-clusters
> -------------------------------------------------------------
>
> Key: HDFS-15423
> URL: https://issues.apache.org/jira/browse/HDFS-15423
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: rbf, webhdfs
> Reporter: Chao Sun
> Assignee: Fengnan Li
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.4.0
>
> Time Spent: 6h 10m
> Remaining Estimate: 0h
>
> In {{RouterWebHdfsMethods}} and for a {{CREATE}} call, {{chooseDatanode}}
> first gets all DNs via {{getDatanodeReport}}, and then randomly pick one from
> the list via {{getRandomDatanode}}. This logic doesn't seem correct as it
> should pick a DN for the specific cluster(s) of the input {{path}}.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]