Commit 72f2e588 authored by lichenchong's avatar lichenchong
Browse files

Kinetic Admin CLI:

1. Modify admin client request time from default 60s to 180s(Drive erase
data slowly).
2. Fix an argument parsing bug, how to parse null and empty.
parent 602ef1ce
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -153,6 +153,7 @@ public class KineticAdminCLI {
    public void init(String host, String tlsPort, String clusterVersion)
            throws KineticException {
        AdminClientConfiguration adminClientConfig = new AdminClientConfiguration();
        adminClientConfig.setRequestTimeoutMillis(180000);
        if (host != null && !host.isEmpty()) {
            validateHost(host);
            adminClientConfig.setHost(host);
@@ -397,8 +398,7 @@ public class KineticAdminCLI {
            }
        }

        if (index != -1 && args.length > (index + 1)
                && !args[index + 1].isEmpty()) {
        if (index != -1 && args.length > (index + 1)) {
            if (args[index + 1].startsWith("-")) {
                throw new IllegalArgumentException("value can't start with -");
            }