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

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

On the new v5 (should have been v6?):

 - I don't think you need to keep that map of regions, all you really want is a 
count? Like it's creating the map with the hostAndPort possibly null and the 
rest of the code couldn't care less. I think you could keep a counter and reset 
it when you loop.
 - About that hostAndPort, if it's null should you consider that region as 
unassigned and not counted as an available region?

> 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