hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jia...@apache.org
Subject [13/50] [abbrv] hadoop git commit: YARN-6205. Default lifetime for native services app is invalid. Contributed by Billie Rinaldi
Date Sat, 22 Apr 2017 07:39:35 GMT
YARN-6205. Default lifetime for native services app is invalid. Contributed by Billie Rinaldi


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/6735b086
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/6735b086
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/6735b086

Branch: refs/heads/yarn-native-services
Commit: 6735b0866f38b34bf94f474c7ea43a2f4c9ec0db
Parents: 3160b1d
Author: Gour Saha <gourksaha@apache.org>
Authored: Tue Feb 21 09:04:04 2017 -0800
Committer: Jian He <jianhe@apache.org>
Committed: Sat Apr 22 15:31:50 2017 +0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/slider/client/SliderClient.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/6735b086/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-slider/hadoop-yarn-slider-core/src/main/java/org/apache/slider/client/SliderClient.java
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-slider/hadoop-yarn-slider-core/src/main/java/org/apache/slider/client/SliderClient.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-slider/hadoop-yarn-slider-core/src/main/java/org/apache/slider/client/SliderClient.java
index e84809a..00e2b62 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-slider/hadoop-yarn-slider-core/src/main/java/org/apache/slider/client/SliderClient.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-slider/hadoop-yarn-slider-core/src/main/java/org/apache/slider/client/SliderClient.java
@@ -2070,7 +2070,7 @@ public class SliderClient extends AbstractSliderLaunchedService implements
RunSe
     amLauncher.setKeepContainersOverRestarts(true);
     // set lifetime in submission context;
     Map<ApplicationTimeoutType, Long> appTimeout = new HashMap<>();
-    if (lifetime >= 0) {
+    if (lifetime > 0) {
       appTimeout.put(ApplicationTimeoutType.LIFETIME, lifetime);
     }
     amLauncher.submissionContext.setApplicationTimeouts(appTimeout);


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


Mime
View raw message