[
https://issues.apache.org/jira/browse/HBASE-3904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13036913#comment-13036913
]
Ted Yu commented on HBASE-3904:
-------------------------------
In Master, we have:
{code}
public void createTable(HTableDescriptor desc, byte [][] splitKeys)
throws IOException {
createTable(desc, splitKeys, false);
}
{code}
The above is called by HBaseAdmin.createTableAsync() - meaning it is
asynchronous.
In order to keep backward compatibility, I propose introducing new methods in
HBaseAdmin:
{code}
public void createTableSync(HTableDescriptor desc);
public void createTableSync(HTableDescriptor desc, byte [][] splitKeys);
{code}
They would end up with Master calling:
{code}
public void createTableSync(HTableDescriptor desc, byte [][] splitKeys)
throws IOException {
createTable(desc, splitKeys, true);
}
{code}
> 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
> Priority: Minor
>
> 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