From 056f480093938808aa016d828000a1fc99cff141 Mon Sep 17 00:00:00 2001 From: Bharat Viswanadham Date: Tue, 9 Oct 2018 15:21:02 -0700 Subject: [PATCH] HDDS-583. SCM returns zero as the return code, even when invalid options are passed. Contributed by Namit Maheshwari. (cherry picked from commit 6a39739316795a4828833e99d78aadc684270f98) --- .../apache/hadoop/hdds/scm/server/StorageContainerManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/StorageContainerManager.java b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/StorageContainerManager.java index efd5fc5be8e..ce2725f1009 100644 --- a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/StorageContainerManager.java +++ b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/StorageContainerManager.java @@ -513,7 +513,7 @@ public final class StorageContainerManager extends ServiceRuntimeInfoImpl private static StartupOption parseArguments(String[] args) { int argsLen = (args == null) ? 0 : args.length; - StartupOption startOpt = StartupOption.HELP; + StartupOption startOpt = null; if (argsLen == 0) { startOpt = StartupOption.REGULAR; }