Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.16.0
Description
Following latest discussion on HBASE-21745, this proposes an hbck2 command that allows for inserting back regions missing in META that still have regioninfo available in HDFS. Although this is still an interactive and simpler version than the old OfflineMetaRepair, it still relies on hdfs state as the source of truth, and performs META updates mostly independently from Master (apart from requiring Meta table been online).
For a more detailed explanation on this command behaviour, pasting command usage text:
To be used for scenarios where some regions may be missing in META, but there's still a valid 'regioninfo' metadata file on HDFS. This is a lighter version of 'OfflineMetaRepair' tool commonly used for similar issues on 1.x release line. This command needs META to be online. For each table name passed as parameter, it performs a diff between regions available in META, against existing regions dirs on HDFS. Then, for region dirs with no matches in META, it reads regioninfo metadata file and re-creates given region in META. Regions are re-created in 'CLOSED' state at META table only, but not in Masters' cache, and are not assigned either. A rolling Masters restart, followed by a hbck2 'assigns' command with all re-inserted regions is required. This hbck2 'assigns' command is printed for user convenience. WARNING: To avoid potential region overlapping problems due to ongoing splits, this command disables given tables while re-inserting regions. An example adding missing regions for tables 'table_1' and 'table_2': $ HBCK2 addMissingRegionsInMeta table_1 table_2 Returns hbck2 'assigns' command with all re-inserted regions.
Attachments
Issue Links
- is related to
-
HBASE-22690 Deprecate / Remove OfflineMetaRepair in hbase-2+
- Resolved
-
HBASE-22707 [HBCK2] MasterRpcServices assigns method should try to reload regions from meta if the passed regions isn't found under AssignmentManager RegionsStateStore
- Resolved
- relates to
-
HBASE-21966 Fix region holes, overlaps, and other region related errors
- Resolved
-
HBASE-21745 Make HBCK2 be able to fix issues other than region assignment
- Resolved
- links to