infraio commented on a change in pull request #425: HBASE-22737 Add a new admin 
method and shell cmd to trigger the hbck …
URL: https://github.com/apache/hbase/pull/425#discussion_r308500878
 
 

 ##########
 File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java
 ##########
 @@ -1499,6 +1492,17 @@ public RunCatalogScanResponse 
runCatalogScan(RpcController c,
     }
   }
 
+  @Override
+  public RunHbckChoreResponse runHbckChore(RpcController c, 
RunHbckChoreRequest req)
+      throws ServiceException {
+    rpcPreCheck("runHbckChore");
+    HbckChore hbckChore = master.getHbckChore();
+    if (!hbckChore.isRunning()) {
 
 Review comment:
   Ok. Return false if the HBCK chore already running.

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