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

Jean-Daniel Cryans commented on HBASE-3904:
-------------------------------------------

On the patch:

 - The visitor looks completely copy pasted HTable.getRegionsInfo, should be 
refactored.
 - Inside the visitor it creates a 
Addressing.createInetSocketAddressFromHostAndPortStr, which IIRC does a DNS 
lookup when creating the InetSocketAddress. Now let's say you create a 10k 
regions table, and you need to loop a few times, I'm afraid this call will 
become very costly. I believe you don't even need to create the HSA, all you 
want is to check if something is there or not right?


> HConnection.isTableAvailable returns true even with not all regions available.
> ------------------------------------------------------------------------------
>
>                 Key: HBASE-3904
>                 URL: https://issues.apache.org/jira/browse/HBASE-3904
>             Project: HBase
>          Issue Type: Bug
>          Components: client
>            Reporter: Vidhyashankar Venkataraman
>            Assignee: Ted Yu
>            Priority: Minor
>         Attachments: 3904-v3.txt, 3904-v4.txt, 3904-v5.txt, 3904.txt
>
>
> This function as per the java doc is supposed to return true iff "all the 
> regions in the table are available". But if the table is still being created 
> this function may return inconsistent results (For example, when a table with 
> a large number of split keys is created). 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to