subrat-mishra commented on code in PR #105:
URL:
https://github.com/apache/hbase-operator-tools/pull/105#discussion_r853742011
##########
hbase-hbck2/src/main/java/org/apache/hbase/HBCK2.java:
##########
@@ -185,6 +185,37 @@ void checkFunctionSupported(ClusterConnection connection,
String cmd) throws IOE
}
}
+ void setTableState(Hbck hbck, String[] args) throws IOException {
+ Options options = new Options();
+ Option inputFile = Option.builder("i").longOpt("inputFiles").build();
+ options.addOption(inputFile);
+ CommandLine commandLine = getCommandLine(args, options);
+ if (commandLine == null) {
+ return;
+ }
+ String[] argList = commandLine.getArgs();
+ if(!commandLine.hasOption(inputFile.getOpt())) {
+ System.out.println(setTableStateByArgs(hbck, argList));
+ } else {
+ List<String> inputList = getFromArgsOrFiles(stringArrayToList(argList),
true);
+ for (String line : inputList) {
+ String[] params = line.split("\\s+");
Review Comment:
Is it fine to add a test case with this case specifically? I didn't see one
if it's already there please let me know.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]