[
https://issues.apache.org/jira/browse/HDFS-9364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Xiao Chen updated HDFS-9364:
----------------------------
Attachment: HDFS-9364.002.patch
Thanks for the review [~andreina]! Attached patch 002.
1. Makes sense, updated. Good catch!
2. I think it's theoretically possible for a misconfigured cluster to reach
there and silently try to resolve in said methods. Since we don't have check in
configuration to eliminate this possibility, it's better to handle it than
silently resolving. Another option is to do a precondition check here instead
of handling it, but I feel that may be too aggressive... What do you think?
> Unnecessary DNS resolution attempts when creating NameNodeProxies
> -----------------------------------------------------------------
>
> Key: HDFS-9364
> URL: https://issues.apache.org/jira/browse/HDFS-9364
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Xiao Chen
> Assignee: Xiao Chen
> Attachments: HDFS-9364.001.patch, HDFS-9364.002.patch
>
>
> When creating NameNodeProxies, we always try to DNS-resolve namenode URIs.
> This is unnecessary if the URI is logical, and may be significantly slow if
> the DNS is having problems.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)