hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Marion (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-12360) Create StatsD metrics2 sink
Date Thu, 27 Aug 2015 18:15:46 GMT

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

Dave Marion commented on HADOOP-12360:

Patch 3 addresses the issues below

bq.    use NetUtils methods to get the hostname
bq.    logging: you can use the SLF4J APIs and so skip the log level condition wrappers; use
debug() instead of trace() as log4j combines them anyway.
bq.    you can use j7 <> types in constructors now
Not sure what you mean by this
bq.    exception catch clause in connect() should only catch IOException unless there's some
special reason otherwise
OBE - your comment about connection failure reminded me that this is a UDP client. There is
no stateful connection; it's fire and forget, even if it fails. I fixed the StatsD class to
reflect this, which means connect() and the connection failure logic was removed. Having said
that, I copied the logic from the Graphite sink. If it's wrong here, then it's wrong there
bq.    inner statsd class should be private
I can do this if you can give me a good way to instantiate the class in the tests
bq.    the tests must have a timeout attribute so timing out operations (here: receive())
have timeouts handled in the test runner, not a brute force jvm kill
bq.    socket close() must be in finally clause, so that failed tests clean up

> Create StatsD metrics2 sink
> ---------------------------
>                 Key: HADOOP-12360
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12360
>             Project: Hadoop Common
>          Issue Type: New Feature
>          Components: metrics
>    Affects Versions: 2.7.1
>            Reporter: Dave Marion
>            Assignee: Dave Marion
>            Priority: Minor
>         Attachments: HADOOP-12360.001.patch, HADOOP-12360.002.patch, HADOOP-12360.003.patch
> Create a metrics sink that pushes to a StatsD daemon.

This message was sent by Atlassian JIRA

View raw message