saintstack commented on a change in pull request #14: HBASE-22843 [HBCK2] Fix 
HBCK2 after HBASE-22777 & HBASE-22758
URL: 
https://github.com/apache/hbase-operator-tools/pull/14#discussion_r314356292
 
 

 ##########
 File path: hbase-hbck2/src/main/java/org/apache/hbase/hbck1/HBaseFsck.java
 ##########
 @@ -3924,13 +3924,14 @@ public boolean visit(Result result) throws IOException 
{
               throw new IOException("Two entries in hbase:meta are same " + 
previous);
             }
           }
-          PairOfSameType<RegionInfo> mergeRegions = 
MetaTableAccessor.getMergeRegions(result);
-          for (RegionInfo mergeRegion : new RegionInfo[] {
-              mergeRegions.getFirst(), mergeRegions.getSecond() }) {
-            if (mergeRegion != null) {
-              // This region is already been merged
-              HbckInfo hbInfo = getOrCreateInfo(mergeRegion.getEncodedName());
-              hbInfo.setMerged(true);
+          List<RegionInfo> mergeParents = 
HBCKMetaTableAccessor.getMergeRegions(result.rawCells());
 
 Review comment:
   This part is good.
   
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to