apurtell commented on a change in pull request #3230:
URL: https://github.com/apache/hbase/pull/3230#discussion_r626219557



##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/janitor/CatalogJanitor.java
##########
@@ -252,14 +265,11 @@ private boolean cleanMergeRegion(final RegionInfo 
mergedRegion, List<RegionInfo>
           .stream().map(r -> 
RegionInfo.getShortNameToLog(r)).collect(Collectors.joining(", ")),
         mergedRegion);
       ProcedureExecutor<MasterProcedureEnv> pe = 
this.services.getMasterProcedureExecutor();
-      pe.submitProcedure(
-        new GCMultipleMergedRegionsProcedure(pe.getEnvironment(), 
mergedRegion, parents));
-      for (RegionInfo ri : parents) {
-        // The above scheduled GCMultipleMergedRegionsProcedure does the below.

Review comment:
       GCMultipleMergedRegionsProcedure does this. It is not needed here too. I 
think it better to let the procedure do it. We expect the procedure to take 
care of such details, so let's in fact do that.
   Keeping this code around would be harmless, though. 




-- 
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]


Reply via email to