wchevreuil commented on a change in pull request #45: HBASE-23371 [HBCK2] 
Provide client side method for removing ghost regions in meta.
URL: 
https://github.com/apache/hbase-operator-tools/pull/45#discussion_r355121906
 
 

 ##########
 File path: hbase-hbck2/README.md
 ##########
 @@ -174,13 +174,46 @@ Command:
    for how to generate new report.
    SEE ALSO: reportMissingRegionsInMeta
 
+ removeExtraRegionsFromMeta <NAMESPACE|NAMESPACE:TABLENAME>...
+   To be used when regions present on hbase:meta, but with no related
+   directories on the file system. Needs hbase:meta
+   to be online. For each table name passed as parameter, performs diff
+   between regions available in hbase:meta and region dirs on the given
+   file system, removing extra regions from meta with no matching directory.
 
 Review comment:
   Yeah (see Daisuke's comments next). This is similar to the previous 
_addFsRegionsMissingInMeta_ command, where we assume the filesystem to be the 
source of truth. Given the "ghost" region in meta is useless without a related 
dir in the filesystem, here deletion would have no risk of dataloss.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to