infraio commented on a change in pull request #11: HBASE-21322 Add a 
scheduleServerCrashProcedure() API to HbckService
URL: 
https://github.com/apache/hbase-operator-tools/pull/11#discussion_r304191908
 
 

 ##########
 File path: hbase-hbck2/src/main/java/org/apache/hbase/HBCK2.java
 ##########
 @@ -254,6 +258,24 @@ int setRegionState(String region, RegionState.State 
newState)
     }
   }
 
+  List<Long> scheduleSCP(String[] args) throws IOException {
+    List<HBaseProtos.ServerName> serverNames = new ArrayList<>();
+    for (String serverName: args) {
+      serverNames.add(parseServerName(serverName));
+    }
+    try (ClusterConnection c = 
(ClusterConnection)ConnectionFactory.createConnection(getConf())) {
+      try (Hbck hbck = c.getHbck()) {
+        return hbck.scheduleServerCrashProcedure(serverNames);
 
 Review comment:
   What will happened if user use this for 2.1.1? Should we add a version check 
here?

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