[
https://issues.apache.org/jira/browse/HDFS-5208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13776086#comment-13776086
]
Junping Du commented on HDFS-5208:
----------------------------------
Hi Colin, I updated my new comments in HDFS-5237 and thanks for your comments
there. IMO, HDFS-5237 shouldn't be a blocking jira for this as no registration
name (only IP) going to cache backed by CachedDNSToSwitchMapping because of
following code in DatanodeManager.resolveNetworkLocation (DatanodeID).
{code}
if (dnsToSwitchMapping instanceof CachedDNSToSwitchMapping) {
names.add(node.getIpAddr());
} else {
names.add(node.getHostName());
}
{code}
What do you think?
> Only clear network location cache on specific nodes if invalid
> NetworkTopology happens
> --------------------------------------------------------------------------------------
>
> Key: HDFS-5208
> URL: https://issues.apache.org/jira/browse/HDFS-5208
> Project: Hadoop HDFS
> Issue Type: Improvement
> Reporter: Junping Du
> Assignee: Junping Du
> Attachments: HDFS-5208-v1.patch
>
>
> After HDFS-4521, once a DN is registered with invalid networktopology, all
> cached rack info in DNSToSwitchMapping will be cleared. We should only clear
> cache on specific nodes.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira