You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "Johny Rufus (JIRA)" <ji...@apache.org> on 2014/10/07 00:10:33 UTC

[jira] [Commented] (FLUME-2409) NettyAvroRpcClient performs unnecessary hostname lookups

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

Johny Rufus commented on FLUME-2409:
------------------------------------

Attaching a modified patch FLUME-2409-1.patch that also includes the test submitted by Roman Novachenko, with some little modifications.

> NettyAvroRpcClient performs unnecessary hostname lookups
> --------------------------------------------------------
>
>                 Key: FLUME-2409
>                 URL: https://issues.apache.org/jira/browse/FLUME-2409
>             Project: Flume
>          Issue Type: Bug
>          Components: Client SDK
>    Affects Versions: v1.5.0.1
>            Reporter: Roman Novachenko
>            Priority: Minor
>             Fix For: v1.6.0
>
>         Attachments: FLUME-2409-0.patch, FLUME-2409-1.patch, FLUME-2409.patch
>
>
> When NettyAvroRpcClient works with a host that has only an IP address associated with it but no hostname, some operations take too long (a few seconds vs expected millis). This affects most of exceptions throwing and a part of logging.
> This happens because of the unnecessary and expensive hostname lookup when converting NettyAvroRpcClient to String.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)