hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-7307) MetaReader.tableExists should not return false if the specified table regions has been split
Date Sat, 05 Jan 2013 03:26:13 GMT

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

Hudson commented on HBASE-7307:
-------------------------------

Integrated in HBase-0.92-security #147 (See [https://builds.apache.org/job/HBase-0.92-security/147/])
    HBASE-7307 MetaReader.tableExists should not return false if the specified table regions
has been split (Rajesh) (Revision 1420333)

     Result = FAILURE
tedyu : 
Files : 
* /hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/catalog/MetaReader.java
* /hbase/branches/0.92/src/test/java/org/apache/hadoop/hbase/regionserver/TestSplitTransactionOnCluster.java

                
> MetaReader.tableExists should not return false if the specified table regions has been
split
> --------------------------------------------------------------------------------------------
>
>                 Key: HBASE-7307
>                 URL: https://issues.apache.org/jira/browse/HBASE-7307
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.92.2, 0.94.3, 0.96.0
>            Reporter: rajeshbabu
>            Assignee: rajeshbabu
>             Fix For: 0.92.3, 0.96.0, 0.94.4
>
>         Attachments: 7307-trunk.txt, HBASE-7307_92.patch, HBASE-7307_94.patch, HBASE-7307_trunk.patch
>
>
> If a region is split parent we are not adding it to META scan results during full scan.

> {code}
>         if (!isInsideTable(this.current, tableNameBytes)) return false;
>         if (this.current.isSplitParent()) return true;
>         // Else call super and add this Result to the collection.
>         super.visit(r);
> {code}
> If all regions of a table has been split then result size will be zero and returning
false.
> {code} 
>     fullScan(catalogTracker, visitor, getTableStartRowForMeta(tableNameBytes));
>     // If visitor has results >= 1 then table exists.
>     return visitor.getResults().size() >= 1;
> {code}
> Even table is present we are returning false which is not correct(its highly possible
in case of tables with one region).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message