[
https://issues.apache.org/jira/browse/HDFS-9149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14941100#comment-14941100
]
He Tianyi commented on HDFS-9149:
---------------------------------
I think that's a good point [~hexiaoqiao].
One simple idea is generalizes {{getWeight}} into a function that calculates
distance between two locations (more like {{getDistance}}), regardless of the
meaning of each hierarchy.
The only thing is that, I'm not aware why did {{getWeight}} designed to be like
this in the first place, i.e. whether there is some particular concern.
Does someone know the idea behind this design choice?
> Consider multi datacenter when sortByDistance
> ---------------------------------------------
>
> Key: HDFS-9149
> URL: https://issues.apache.org/jira/browse/HDFS-9149
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: namenode
> Reporter: He Xiaoqiao
> Assignee: He Tianyi
>
> {{sortByDistance}} doesn't consider multi-datacenter when read data, so there
> my be reading data via other datacenter when hadoop deployment with multi-IDC.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)