[
https://issues.apache.org/jira/browse/HADOOP-11390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14243950#comment-14243950
]
Steve Loughran commented on HADOOP-11390:
-----------------------------------------
I think if it is just unresolved hostname, I'd rather something explicit in the
code that check for it; this should also let us upgrade it to an
UnknownHostException.
{code}
if (addr.isUnresolved()) {
throw new UnknownHostException("Unresolved host: " + addr);
}
{code}
Now, how can test this?
> Metrics 2 ganglia provider to include hostname in unresolved address problems
> -----------------------------------------------------------------------------
>
> Key: HADOOP-11390
> URL: https://issues.apache.org/jira/browse/HADOOP-11390
> Project: Hadoop Common
> Issue Type: Improvement
> Components: metrics
> Affects Versions: 2.6.0
> Reporter: Steve Loughran
> Assignee: Varun Saxena
> Priority: Minor
> Fix For: 2.7.0
>
> Attachments: HADOOP-11390.001.patch
>
>
> When metrics2/ganglia gets an unresolved hostname it doesn't include the
> hostname in question, making it harder to track down
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)