HDDS-415. 'ozone om' with incorrect argument first logs all the STARTUP_MSG. Contributed by Namit Maheshwari.
This commit is contained in:
parent
62b02e03c8
commit
530029809e
|
@ -258,7 +258,6 @@ public final class OzoneManager extends ServiceRuntimeInfoImpl
|
||||||
hParser.printGenericCommandUsage(System.err);
|
hParser.printGenericCommandUsage(System.err);
|
||||||
System.exit(1);
|
System.exit(1);
|
||||||
}
|
}
|
||||||
StringUtils.startupShutdownMessage(OzoneManager.class, argv, LOG);
|
|
||||||
OzoneManager om = createOm(hParser.getRemainingArgs(), conf);
|
OzoneManager om = createOm(hParser.getRemainingArgs(), conf);
|
||||||
if (om != null) {
|
if (om != null) {
|
||||||
om.start();
|
om.start();
|
||||||
|
@ -298,6 +297,7 @@ public final class OzoneManager extends ServiceRuntimeInfoImpl
|
||||||
}
|
}
|
||||||
switch (startOpt) {
|
switch (startOpt) {
|
||||||
case CREATEOBJECTSTORE:
|
case CREATEOBJECTSTORE:
|
||||||
|
StringUtils.startupShutdownMessage(OzoneManager.class, argv, LOG);
|
||||||
terminate(omInit(conf) ? 0 : 1);
|
terminate(omInit(conf) ? 0 : 1);
|
||||||
return null;
|
return null;
|
||||||
case HELP:
|
case HELP:
|
||||||
|
@ -305,6 +305,7 @@ public final class OzoneManager extends ServiceRuntimeInfoImpl
|
||||||
terminate(0);
|
terminate(0);
|
||||||
return null;
|
return null;
|
||||||
default:
|
default:
|
||||||
|
StringUtils.startupShutdownMessage(OzoneManager.class, argv, LOG);
|
||||||
return new OzoneManager(conf);
|
return new OzoneManager(conf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue