hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mubarak Seyed (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-4991) Provide capability to delete named region
Date Wed, 29 Feb 2012 23:27:58 GMT

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

Mubarak Seyed commented on HBASE-4991:

bq. sounds like the command/api could also be named merge rather than deleteRegion (You are
not actually deleting the data, is that right?)?
We do delete the data of region (to be deleted)> The real confusion with the terminology
here is that merge makes 2 or more regions into one with data remains same (but the start/end
keys are different after the merge) but deleteRegion makes one region (or multiple regions)
data will be deleted from HDFS (and make a single region in meta with modified start/end key).

For example:
We have three regions namely R1, R2, and R3

When we do merge R2 with R3 -> new region would be (R2R3)' and data of R2 and R3 will be
moved to (R2R3)'
so, in META it would look like

R1 -> start/end key, location
(R2R3)' -> modified start/end key, location
r4 -> start/end key, location

When we do deleteRange of single region (R2) -> new region would be (R1)', meaning R1 end
key be R2s end key, data of R2 will be deleted, and R1 data will be merged with R1'
so, in META it would look like

(R1)' -> modified start/end key, location
R3 -> start/end key, location

Make sense?
> Provide capability to delete named region
> -----------------------------------------
>                 Key: HBASE-4991
>                 URL: https://issues.apache.org/jira/browse/HBASE-4991
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Ted Yu
>            Assignee: Mubarak Seyed
>             Fix For: 0.94.0
>         Attachments: HBASE-4991.trunk.v1.patch, HBASE-4991.trunk.v2.patch
> See discussion titled 'Able to control routing to Solr shards or not' on lily-discuss
> User may want to quickly dispose of out of date records by deleting specific regions.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message