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

Nicolas Liochon commented on HBASE-12557:
-----------------------------------------

Agreed (or you can add a hook to ease tests, this save you from using mockito). 
If you want to test that we don't leak resources (i.e. that the dns client 
implementation supports correctly an interruption), then you can't do that but 
it will be an integration test then....

> Introduce timeout mechanism for IP to rack resolution
> -----------------------------------------------------
>
>                 Key: HBASE-12557
>                 URL: https://issues.apache.org/jira/browse/HBASE-12557
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>         Attachments: 12557-v1.txt
>
>
> Config parameter, "hbase.util.ip.to.rack.determiner", determines the class 
> which does IP to rack resolution.
> The actual resolution may be lengthy.
> This JIRA is continuation of HBASE-12554 where a mock DNSToSwitchMapping is 
> used for rack resolution.
> A timeout parameter, "hbase.ip.to.rack.determiner.timeout", is proposed whose 
> value governs the duration which RackManager waits before rack resolution is 
> stopped.



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

Reply via email to