You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by el...@apache.org on 2019/04/10 16:39:57 UTC

[hadoop] branch trunk updated: HDDS-1397. Avoid the usage of signal handlers in datanodes of the MiniOzoneClusters.

This is an automated email from the ASF dual-hosted git repository.

elek pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new dfb518b  HDDS-1397. Avoid the usage of signal handlers in datanodes of the MiniOzoneClusters.
dfb518b is described below

commit dfb518bbf5e67534dd621f89f7c53314873bb282
Author: Márton Elek <el...@apache.org>
AuthorDate: Fri Apr 5 11:18:24 2019 +0200

    HDDS-1397. Avoid the usage of signal handlers in datanodes of the MiniOzoneClusters.
    
    Closes #701
---
 .../main/java/org/apache/hadoop/ozone/HddsDatanodeService.java    | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/HddsDatanodeService.java b/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/HddsDatanodeService.java
index dbff549..4ddfb2f 100644
--- a/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/HddsDatanodeService.java
+++ b/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/HddsDatanodeService.java
@@ -105,7 +105,7 @@ public class HddsDatanodeService extends GenericCli implements ServicePlugin {
   @VisibleForTesting
   public static HddsDatanodeService createHddsDatanodeService(
       String[] args, Configuration conf) {
-    return createHddsDatanodeService(args, conf, true);
+    return createHddsDatanodeService(args, conf, false);
   }
 
   /**
@@ -124,11 +124,9 @@ public class HddsDatanodeService extends GenericCli implements ServicePlugin {
     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) {


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org