HDDS-1397. Avoid the usage of signal handlers in datanodes of the MiniOzoneClusters.

Closes #701
This commit is contained in:
Márton Elek 2019-04-05 11:18:24 +02:00
parent 65deb1ac42
commit dfb518bbf5
No known key found for this signature in database
GPG Key ID: D51EA8F00EE79B28

View File

@ -105,7 +105,7 @@ public HddsDatanodeService(Configuration conf) {
@VisibleForTesting @VisibleForTesting
public static HddsDatanodeService createHddsDatanodeService( public static HddsDatanodeService createHddsDatanodeService(
String[] args, Configuration conf) { String[] args, Configuration conf) {
return createHddsDatanodeService(args, conf, true); return createHddsDatanodeService(args, conf, false);
} }
/** /**
@ -124,11 +124,9 @@ private static HddsDatanodeService createHddsDatanodeService(
if (args.length == 0 && printBanner) { if (args.length == 0 && printBanner) {
StringUtils StringUtils
.startupShutdownMessage(HddsDatanodeService.class, args, LOG); .startupShutdownMessage(HddsDatanodeService.class, args, LOG);
return new HddsDatanodeService(conf);
} else {
new HddsDatanodeService().run(args);
return null;
} }
return new HddsDatanodeService(conf);
} }
public static void main(String[] args) { public static void main(String[] args) {