You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Syeda Arshiya Tabreen (JIRA)" <ji...@apache.org> on 2019/02/18 09:58:00 UTC

[jira] [Created] (HBASE-21924) Region assignment will fail, if reference files are copied into new region while running HBCK -fixHdfsOverlaps command

Syeda Arshiya Tabreen created HBASE-21924:
---------------------------------------------

             Summary: Region assignment will fail, if reference files are copied into new region while running HBCK -fixHdfsOverlaps command
                 Key: HBASE-21924
                 URL: https://issues.apache.org/jira/browse/HBASE-21924
             Project: HBase
          Issue Type: Bug
          Components: hbck
            Reporter: Syeda Arshiya Tabreen
            Assignee: Syeda Arshiya Tabreen


Consider we have overlapping regions which contains reference files, 
when *-fixHdfsOverlaps* hbck command is run due to region overlap,a new region is created and all data is merged into the new region along with the reference files if present.

For example:
1.create table 't' 
2.Insert records \{00,111,200} into the table 't'and flush the data
3.split the table 't' with split-key '100'
4.Now we have three regions( 1 parent and two daughter regions )
1.*parent_region*('Empty','Empty') => \{00,111,200}
2.*daughter_region-1*('Empty','100')=>\{00}
3.*daughter_region-2*('100','Empty')=>\{111,200}

5.Make sure parent_region is not deleted and also references of parent region are not cleaned for the daughter regions in file system and run *-fixHdfsOverlaps* command

The command will copy all the data of overlapping regions along with the reference files into new_ region.

when *-fixAssignments* hbck command is run to fix assignment issues in table,the new_region wont be assigned as reference files which is present in it will be pointing to the parent_region ( -fixHdfsOverlaps command will move all the data into new region and sideline the other overlapped regions) and it will try assigning the parent_region which does not exist.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)