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

Ted Yu commented on HBASE-12557:
--------------------------------

ThreadPoolExecutor can provide count of threads that are executing tasks.

In the following code:
{code}
      InetSocketAddress isa = new InetSocketAddress("zxy.org", 321);
      try {
        InetAddress addr = isa.getAddress();
        String ipAddressString = DNS.reverseDns(addr, null);
{code}
if I replace "zxy.org" with "zxyy.org" , isa.getAddress() returns null.
Still looking for a way to make lengthy DNS related call.

> 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