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

Matteo Bertozzi commented on HBASE-9303:
----------------------------------------

let me try to explain the problem...

the restore tries to do a diff between the current state and the snapshot state
snapshot regions already present in the current state will not be removed from 
META
this means that your meta will contain extra information from the current state 
(not present at the time of the snapshot)

In this specific case, the parent split region is now marked as SPLIT. so the 
assignment manager knows that this region should never be assigned again.
At this point we restore... the current split parent goes back to be a normal 
region.. but in meta and in the assignment manager memory state is still marked 
as split.. so not assigned...
At this point your table has a missing region that will never go online.
                
> Snapshot restore of table which splits after snapshot was taken encounters 
> 'Region is not online'
> -------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-9303
>                 URL: https://issues.apache.org/jira/browse/HBASE-9303
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.95.2
>            Reporter: Ted Yu
>            Assignee: Matteo Bertozzi
>         Attachments: 9303.shell-output, HBASE-9303-0.94-v0.patch, 
> HBASE-9303-0.94-v1.patch, HBASE-9303-trunk-v0.patch, 
> HBASE-9303-trunk-v1.patch, hbase-hbase-master-hor15n02.log, 
> hbase-hbase-regionserver-hor15n02.log
>
>
> Take snapshot of a table ('tablethree' in the log).
> Put some data in the table and split the table.
> Restore snapshot.
> Table cannot be enabled due to:
> {code}
> Thu Aug 22 19:37:20 UTC 2013, 
> org.apache.hadoop.hbase.client.RpcRetryingCaller@47a6ac39, 
> org.apache.hadoop.hbase.NotServingRegionException: 
> org.apache.hadoop.hbase.NotServingRegionException: Region is not online: 
> c32e63d8c8a1a94b68966645b956d86d
>       at 
> org.apache.hadoop.hbase.regionserver.HRegionServer.getRegionByEncodedName(HRegionServer.java:2557)
>       at 
> org.apache.hadoop.hbase.regionserver.HRegionServer.getRegion(HRegionServer.java:3921)
>       at 
> org.apache.hadoop.hbase.regionserver.HRegionServer.scan(HRegionServer.java:2996)
>       at 
> org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:26847)
> {code}

--
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

Reply via email to