[ 
https://issues.apache.org/jira/browse/HADOOP-14200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15931747#comment-15931747
 ] 

Steve Loughran commented on HADOOP-14200:
-----------------------------------------

the test logs probably have more detail, 

1. The inner socket stuff isn't being translated
2. the rethrown message doesn't include the error of the inner exception in its 
text

The combination means that the root cause is being lost, and even that lacks 
diagnostics information


{code}
testPutMetrics(org.apache.hadoop.metrics2.impl.TestStatsDMetrics)  Time 
elapsed: 0.005 sec  <<< ERROR!org.apache.hadoop.metrics2.MetricsException: 
Error writing metric to StatsD
        at java.net.TwoStacksPlainDatagramSocketImpl.send(Native Method)
        at java.net.DatagramSocket.send(DatagramSocket.java:693)
        at 
org.apache.hadoop.metrics2.sink.StatsDSink$StatsD.write(StatsDSink.java:203)
        at 
org.apache.hadoop.metrics2.sink.StatsDSink.writeMetric(StatsDSink.java:151)
        at 
org.apache.hadoop.metrics2.sink.StatsDSink.putMetrics(StatsDSink.java:144)
        at 
org.apache.hadoop.metrics2.impl.TestStatsDMetrics.testPutMetrics(TestStatsDMetrics.java:74)
{code}

> StatsDSink error reporting to use NetUtils for failure diagnostics
> ------------------------------------------------------------------
>
>                 Key: HADOOP-14200
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14200
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: metrics
>    Affects Versions: 2.8.0
>            Reporter: Steve Loughran
>
> When statsd publisher fails, it doesn't include the hostname/port information 
> needed to begin debugging the problem. That's what NetUtils is for



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to