HDDS-1397. Avoid the usage of signal handlers in datanodes of the MiniOzoneClusters.
Closes #701
This commit is contained in:
parent
65deb1ac42
commit
dfb518bbf5
@ -105,7 +105,7 @@ public HddsDatanodeService(Configuration conf) {
|
||||
@VisibleForTesting
|
||||
public static HddsDatanodeService createHddsDatanodeService(
|
||||
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) {
|
||||
StringUtils
|
||||
.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) {
|
||||
|
Loading…
Reference in New Issue
Block a user